syssi / xiaomi_cooker

Xiaomi Mi Electric Rice Cooker integration for Home Assistant
Apache License 2.0
141 stars 37 forks source link

Not working after 0.88 #5

Closed ktpx closed 5 years ago

ktpx commented 5 years ago

After 0.88 this component doesnt work anymore. Homeassistant also suggests adding the component/sensor under its own folder (../custom_components/xiaomi_cooker/sensor.py.

2019-02-25 11:29:26 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.xiaomi_cooker.sensor. Make sure all dependencies are installed ImportError: No module named 'custom_components.xiaomi_cooker.sensor'; 'custom_components.xiaomi_cooker' is not a package

Link to similar case:

https://community.home-assistant.io/t/custom-component-roon-not-working-in-0-88/100591/2

ktpx commented 5 years ago

So this needs to be changed to custom_components/xiaomi_cooker/sensor.py custom_components/xiaomi_cooker/init.py

syssi commented 5 years ago

Thanks for your PR! https://github.com/syssi/xiaomi_cooker/pull/6

ktpx commented 5 years ago

Thanks for your PR! #6

You're welcome :D