Breaks all xiaomi_miio integrations
Opened this issue · 1 comments
All xiaomi_miio devices fail and throw an error as soon as I enable miio2.
Got a couple of devices using xiaomi_miio, but I just can't get them to not conflict with this miio2 custom integration.
Here is an error I get as soon as I enable the miio2:
Logger: homeassistant.config_entries, Source: config_entries.py:575, First occurred: 12:33:02 PM (2 occurrences), Last logged: 12:33:03 PM
Error occurred loading configuration flow for integration xiaomi_miio: No module named 'miio.gateway.gateway'; 'miio.gateway' is not a package
As soon as I delete the miio2 folder from custom_components and comment out the vacuum integration, all of my xiaomi_miio devices work fine. As soon as I get it back, they all break.
Am I the only one having this problem?
Here is my system info:
version | core-2021.4.6 |
---|---|
installation_type | Home Assistant Supervised |
dev | false |
hassio | true |
docker | true |
virtualenv | false |
python_version | 3.8.7 |
os_name | Linux |
os_version | 4.19.0-16-amd64 |
arch | x86_64 |
timezone | Europe/Moscow |
Home Assistant Community Store
GitHub API | ok |
---|---|
Github API Calls Remaining | 4758 |
Installed Version | 1.12.1 |
Stage | running |
Available Repositories | 839 |
Installed Repositories | 11 |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Debian GNU/Linux 10 (buster) |
---|---|
update_channel | stable |
supervisor_version | supervisor-2021.04.0 |
docker_version | 20.10.6 |
disk_total | 115.4 GB |
disk_used | 10.0 GB |
healthy | true |
supported | true |
supervisor_api | ok |
version_api | ok |
installed_addons | ESPHome (1.16.2), ESPHome (dev) (dev), File editor (5.3.0), Home Assistant Google Drive Backup (0.104.2), MariaDB (2.3.0), Mosquitto broker (5.1.1), Node-RED (9.0.1), Zigbee2mqtt (1.18.1-1) |
Lovelace
dashboards | 1 |
---|---|
resources | 8 |
views | 6 |
mode | yaml |
set python-miio version in manifest.json to 0.5.0.1, which helped some people - no luck. HASS still throws an error.
Setup failed for xiaomi_miio: Unable to import component: No module named 'miio.gateway.gateway'; 'miio.gateway' is not a package
manifest.json:
{
"domain": "miio2",
"name": "Xiaomi miio vacuum STYJ02YM",
"documentation": "",
"requirements": [
"construct==2.9.45",
"python-miio==0.5.0.1"
],
"dependencies": [],
"codeowners": []
}