Skip to content
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

cannot import name 'ROCKROBO_S7_MAXV' from 'miio.vacuum' (/usr/local/lib/python3.10/site-packages/miio/vacuum.py #39

Open
Tontze opened this issue Nov 26, 2022 · 13 comments

Comments

@Tontze
Copy link

Tontze commented Nov 26, 2022

I dont have ROCKROBO_S7_MAXV, i usually need to do double reboot to get rid of this warning and get integration working.

2022-11-26 07:32:51.480 ERROR (MainThread) [homeassistant.setup] 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) 2022-11-26 07:32:51.573 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of xiaomi_viomi. Setup failed for dependencies: xiaomi_miio 2022-11-26 07:32:51.579 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration xiaomi_viomi: (DependencyError(...), 'Could not setup dependencies: xiaomi_miio')

@Tontze
Copy link
Author

Tontze commented Nov 26, 2022

Also, im not sure if this correct repo :]

@Turntable67
Copy link

Same here, becasue xiaomi_viomi has a dependency on xiaomi_miio (python-miio==0.5.9)

@Ivan-Firefly
Copy link

Same here, becasue xiaomi_viomi has a dependency on xiaomi_miio (python-miio==0.5.9)

Same issue. Tried to install miio integration - also error - no such model (I have viomi.vacuum.v7)

@scetu
Copy link

scetu commented Dec 18, 2022

Having same issue, viomi.vacuum.v8

@filipejsf
Copy link

Has anyone found a way around this problem?

@scetu
Copy link

scetu commented Dec 19, 2022

In another issue they are suggesting change manually dependency, but it does not work for me.

It is due to a dependency mismatch.
Change "python-miio==0.5.9" to "python-miio>=0.5.9" in manifest.json and it will work again.

@scetu
Copy link

scetu commented Dec 19, 2022

I am able to setup integration via GUI, but when I restart HA later, it won't load again with error Setup failed for xiaomi_miio: Unable to import component: cannot import name 'ROCKROBO_S7_MAXV' from 'miio.vacuum'

@filipejsf
Copy link

In another issue they are suggesting change manually dependency, but it does not work for me.

It is due to a dependency mismatch.
Change "python-miio==0.5.9" to "python-miio>=0.5.9" in manifest.json and it will work again.

Thanks for the quick replies guys!
This change on manifest.json solved the problem! I could finally get the entity back!
Thanks for the tip.

@Tontze
Copy link
Author

Tontze commented Dec 22, 2022

Hm, im still getting this error once in a while ..

@barrowghoul
Copy link

having the same issue, modified manifest.json but didn´t work. Any other suggestion?

@ficwiktor
Copy link

Same problem, any updates?

@zen
Copy link

zen commented May 7, 2023

This custom extension needs more love ;) Looks like it's not maintained :(

@scetu
Copy link

scetu commented May 7, 2023

@zen I have switched to https://github.com/al-one/hass-xiaomi-miot and never looked back... works flawlessly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants