Closed samuel-azerty closed 4 years ago
xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)
Sounds like your installation is broken (likely a dupe of #36045), 0.5.0.1 definitely has that method in the utils. Please reopen if that's not the case.
The problem
I have a new xiaomi purifier 3H that doesn't install on home assistant.
Platform error fan.xiaomi_miio - cannot import name 'brightness_and_color_to_int' from 'miio.utils' (/usr/local/lib/python3.7/site-packages/miio/utils.py)
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
Inside containter pip3 show python-miio
Name: python-miio Version: 0.5.0.1 Summary: Python library for interfacing with Xiaomi smart appliances Home-page: https://github.com/rytilahti/python-miio Author: Teemu Rytilahti Author-email: tpr@iki.fi License: GPLv3 Location: /usr/local/lib/python3.7/site-packages Requires: cryptography, zeroconf, tqdm, click, pytz, appdirs, attrs, netifaces, construct Required-by: