-
Notifications
You must be signed in to change notification settings - Fork 113
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
HA 2021.9.2 (nwt.derh.wdh318efw1) - AttributeError: 'AirDehumidifier' object has no attribute 'device_info #206
Comments
|
Same problem on deerma.humidifier.mjjsq after update HA on V2021.9.2 Not work Xiaomi Air Humidifier and in log error:
with both V0.6.11 & V0.6.12 |
Anything I can do to help? If you give me an example on one device what changes are required, perhaps I can go through and amend? |
Go to the release page of the |
@rytilahti Could you help me here? It looks like https://github.com/rytilahti/python-miio/blob/master/miio/airdehumidifier.py#L177 I would like to replace this line by
to fix the issue. |
@syssi oops, the initialization is indeed missing, that slipped somehow through the cracks when the variable got type hinted. It should look like this: https://github.com/rytilahti/python-miio/blob/master/miio/airhumidifier.py#L265 |
Having the same problem here. |
Fixed. |
Confirmed functional with V0.6.16 & Haas V 2021.12.3 |
Have tried with both V0.6.11 & V0.6.12
Was functioning fine with HaasV2021.8.8 using V0.6.11
On updating to HaasV2021.9.2 i started seeing this error
Error message as follows
Logger: homeassistant.components.climate
Source: custom_components/xiaomi_miio_airpurifier/climate.py:435
Integration: Climate (documentation, issues)
First occurred: 16:40:41 (2 occurrences)
Last logged: 16:40:41
xiaomi_miio_airpurifier: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 633, in async_device_update
await task
File "/config/custom_components/xiaomi_miio_airpurifier/climate.py", line 435, in async_update
state = await self.hass.async_add_executor_job(self._device.status)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/miio/airdehumidifier.py", line 201, in status
if self.device_info is None:
AttributeError: 'AirDehumidifier' object has no attribute 'device_info'
The text was updated successfully, but these errors were encountered: