-
Notifications
You must be signed in to change notification settings - Fork 134
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 'FanZA5' #52
Comments
Most likely misconfiguration in python-miio dependency. |
This is the code I currently see in the miio2 manifest.json file: The dependencies section is currently blank as you can see. |
My issue got resolved after changing the python-miio version from Refer to the below image: @nqkdev Can you please update the manifest.json if the fix works for others too? |
It worked to me too the workarround @dibyadip-das! thanks! /config/custom_components/miio2/vacuum.py:137: DeprecationWarning: Call to deprecated function __init__ (This class will become the base class for all vacuum implementations. Use RoborockVacuum to control roborock vacuums.).
vacuum = Vacuum(host, token)
/usr/local/lib/python3.9/site-packages/hyperframe/flags.py:14: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
class Flags(collections.MutableSet):
/usr/local/lib/python3.9/site-packages/h2/settings.py:154: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
class Settings(collections.MutableMapping):
/usr/local/lib/python3.9/asyncio/base_events.py:1460: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
infos = await tasks.gather(*fs, loop=self) |
I also tried the workaround from @dibyadip-das. |
@Kire88Visser I also have the Xiaomi Cloud Map Extractor custom component installed. Not sure if that did some magic. |
I am consistently getting the following error in my Home Assistant error log:
Logger: homeassistant.config_entries
Source: config_entries.py:720
First occurred: 3:11:36 PM (8 occurrences)
Last logged: 3:29:44 PM
Error occurred loading configuration flow for integration xiaomi_miio: cannot import name 'FanZA5' from 'miio' (/usr/local/lib/python3.9/site-packages/miio/init.py)
The text was updated successfully, but these errors were encountered: