home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.46k stars 30.69k forks source link

Xiaomi Humidifier don't work after HA update #76307

Closed snp88 closed 2 years ago

snp88 commented 2 years ago

The problem

Xiaomi humidifier stop working after update to newst HA Home Assistant 2022.8.1

What version of Home Assistant Core has the issue?

2022.8.1

What was the last working version of Home Assistant Core?

2022.7.7

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

xiaomi miio

Link to integration documentation on our website

https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-air-purifier-air-humidifier-and-standing-fan

Diagnostics information

Logger: homeassistant.setup Source: setup.py:320 First occurred: 15:55:44 (6 occurrences) Last logged: 15:55:45

Unable to prepare setup for platform xiaomi_miio.humidifier: Platform not found (cannot import name 'DeviceInfo' from 'miio' (/usr/local/lib/python3.10/site-packages/miio/init.py)). Unable to prepare setup for platform xiaomi_miio.select: Platform not found (cannot import name 'DeviceInfo' from 'miio' (/usr/local/lib/python3.10/site-packages/miio/init.py)).

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @rytilahti, @syssi, @starkillerog, @bieniu, mind taking a look at this issue as it has been labeled with an integration (xiaomi_miio) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)

rytilahti commented 2 years ago

DeviceInfo is definitely exposed, maybe you are using some custom component that requires an older python-miio version causing this problem?

rytilahti commented 2 years ago

Please disable any miio-related custom components (if any) and see if it's still not working, and reopen if the issue is still there. It might be that some custom components are depending on an older version of python-miio which is causing this problem.

snp88 commented 2 years ago

Please disable any miio-related custom components (if any) and see if it's still not working, and reopen if the issue is still there. It might be that some custom components are depending on an older version of python-miio which is causing this problem.

Correct when i remove custom all work as expected