core icon indicating copy to clipboard operation
core copied to clipboard

Xiaomi MIIO cannot be loaded in 2022.11.1

Open slydiman opened this issue 1 year ago • 2 comments

The problem

Xiaomi MIIO integration does not work at all with supervised HA after update to 2022.11.1. Please update the miio package.

Logger: homeassistant.setup Source: setup.py:192

Setup failed for xiaomi_miio: Unable to import component: cannot import name 'ROCKROBO_S7_MAXV' from 'miio.vacuum' (/usr/local/lib/python3.10/site-packages/miio/vacuum.py)

Logger: homeassistant.config_entries Source: config_entries.py:809

Error occurred loading configuration flow for integration xiaomi_miio: cannot import name 'ROCKROBO_S7_MAXV' from 'miio.vacuum' (/usr/local/lib/python3.10/site-packages/miio/vacuum.py)

Note I have no ROCKROBO_S7_MAXV and do not use it. I have few chuangmi.plug.v3, zhimi.humidifier.v1, zhimi.humidifier.ca4, rockrobo.vacuum.v1 - they do not work anymorw.

What version of Home Assistant Core has the issue?

2022.11.1

What was the last working version of Home Assistant Core?

2022.10

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/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Supervisor 2022.10.2 Frontend 20221102.1 - latest

slydiman avatar Nov 07 '22 11:11 slydiman

Hey there @rytilahti, @syssi, @starkillerog, 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!

Code owner commands

Code owners of xiaomi_miio can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign xiaomi_miio Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)

home-assistant[bot] avatar Nov 07 '22 11:11 home-assistant[bot]

@slydiman you probably have a custom integration using python-miio that pined it to a old version, please update or disable those custom components such that the latest python-miio version is beeing uses.

starkillerOG avatar Nov 07 '22 14:11 starkillerOG

Right. I forget to check the component health_pot. I have updated python-miio==0.5.10 to python-miio>=0.5.10 in manifest.json and the problem is gone.

slydiman avatar Nov 07 '22 19:11 slydiman