homeassistantchina / custom_components

non-official HASS components.
45 stars 16 forks source link

could not install dependency python-miio==0.0.8 #6

Open setterlee opened 6 years ago

setterlee commented 6 years ago

My HA is showing this error at Start:

2017-10-28 18:26:03 ERROR (Thread-14) [homeassistant.util.package] Unable to install package python-miio==0.0.8: Could not find a version that satisfies the requirement python-miio==0.0.8 (from versions: 0.2.0, 0.3.0) No matching distribution found for python-miio==0.0.8 2017-10-28 18:26:03 ERROR (MainThread) [homeassistant.setup] Not initializing switch.chuangmi_ir because could not install dependency python-miio==0.0.8 2017-10-28 18:26:03 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.chuangmi_ir: Could not install all requirements.

The python-miio==0.0.8 dependency can´t be installed via pip3 install because that version is no longer available.

Fanstastic commented 6 years ago

I have a simple patch which I can confirm is working for the Chuangmi IR. I have updated the Smart Fan code but haven't tested it (I don't have a Xiaomi fan) but the libraries should load the same.

update-miio-library-to-0.3.0.patch.txt

Fanstastic commented 6 years ago

I submitted a pull request if you aren't technically savvy with applying patches.