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

Error loading custom_components.xiaomi_miio.climate in HA 0.89 #49

Closed
aktifin opened this issue Mar 7, 2019 · 7 comments
Closed

Error loading custom_components.xiaomi_miio.climate in HA 0.89 #49

aktifin opened this issue Mar 7, 2019 · 7 comments

Comments

@aktifin
Copy link

aktifin commented Mar 7, 2019

When I update HA to 0.89 and put the latest climate.py and init.py into xiaomi_miio folder ,
xiaomi_miio dosen't worked and display the error like this
Error loading custom_components.xiaomi_miio_climate.climate. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/src/app/homeassistant/loader.py", line 166, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/config/custom_components/xiaomi_miio/climate.py", line 14, in
from homeassistant.components.climate import (
ImportError: cannot import name 'SUPPORT_ON_OFF' from 'homeassistant.components.climate' (/usr/src/app/homeassistant/components/climate/init.py)

@zz66
Copy link

zz66 commented Mar 7, 2019

Same issue, HA 0.89 + python 3.7.
ERROR (MainThread) [homeassistant.config] Package climate setup failed. Component climate cannot be merged. Expected a dict.

@syssi
Copy link
Owner

syssi commented Mar 7, 2019

It looks like the component isn't compatible right now. I will fix it ASAP.

@syssi syssi closed this as completed in 390faa9 Mar 7, 2019
@befantasy
Copy link
Contributor

It seems that it remains conflict with the official component - Xiaomi Mi Robot Vacuum. even if update to your latest release.

@syssi
Copy link
Owner

syssi commented Mar 7, 2019

Could you post the error messages / exceptions? It fear you have to cooy all the other xiaomi_miio files to the same folder at custom_components

@befantasy
Copy link
Contributor

when I put the xiaomi_miio folder to customer_components, Xiaomi Mi Robot Vacuum can't be used any more

2019-03-07 17:08:50 INFO (MainThread) [homeassistant.loader] Loaded xiaomi_miio from custom_components.xiaomi_miio
2019-03-07 17:08:50 WARNING (MainThread) [homeassistant.loader] You are using a custom component for xiaomi_miio which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.loader] Loaded xiaomi_miio.climate from custom_components.xiaomi_miio.climate
2019-03-07 17:08:50 WARNING (MainThread) [homeassistant.loader] You are using a custom component for xiaomi_miio.climate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.setup] Setting up climate
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.loader] Loaded switch.command_line from homeassistant.components.switch.command_line
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.loader] Loaded wake_on_lan from homeassistant.components.wake_on_lan
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.loader] Loaded switch.wake_on_lan from homeassistant.components.switch.wake_on_lan
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.setup] Setting up homekit
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.loader] Loaded sensor.command_line from homeassistant.components.sensor.command_line
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.loader] Loaded sensor.template from homeassistant.components.sensor.template
2019-03-07 17:08:50 INFO (MainThread) [homeassistant.setup] Setting up sensor
2019-03-07 17:08:50 ERROR (MainThread) [homeassistant.loader] Unable to find platform xiaomi_miio. Search path was limited to path of component: custom_components

@syssi
Copy link
Owner

syssi commented Mar 7, 2019

I've renamed the component now. Please update the component and your configuration.yaml.

@befantasy
Copy link
Contributor

Thanks a lot !!!
You responded too fast.

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

4 participants