-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporto for A1 purifier #2
Comments
for resolve my problem I modified the file in this mode
|
Hi maury77, May you share with us your sensor.py file ? |
The solution is not optimal because it makes a call for each attribute, but it works this my sensor.py """Support for Xiaomi water purifier.""" from homeassistant.const import (CONF_NAME, CONF_HOST, CONF_TOKEN, ) _LOGGER = logging.getLogger(name) REQUIREMENTS = ['python-miio>=0.3.1'] TAP_WATER_QUALITY = {'name': 'Tap water', 'key': 'ttds'} def setup_platform(hass, config, add_devices, discovery_info=None):
class XiaomiWaterPurifierSensor(Entity):
class XiaomiWaterPurifier(Entity):
|
Yes it's works ! _LOGGER = logging.getLogger(name) has to be _LOGGER = logging.getLogger(name) Thank you so much |
is there way to support model 1A (MR 432-D)?
I can also do tests if you need to debug
The text was updated successfully, but these errors were encountered: