Skip to content

FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in enum.member() if you want to preserve the old behavior #2028

@KrzysztofHajdamowicz

Description

@KrzysztofHajdamowicz

Describe the bug

2025-06-01 18:28:28.826 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.13/site-packages/miio/miot_device.py:23: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in enum.member() if you want to preserve the old behavior
  Bool = partial(_str2bool)

2025-06-01 18:28:29.231 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.28.1 is exactly one major version older than the runtime version 6.30.2 at pyatv/protocols/mrp/protobuf/ProtocolMessage.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(

Version information (please complete the following information):

  • OS: Linux, HAOS.
  • python-miio: 0.5.12

To Reproduce
Steps to reproduce the behavior:

  1. Use Home Assistant 2025.6
  2. Add Xiaomi device using Xiaomi Miio integration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions