Closed jovanotti25 closed 2 years ago
I have the same issue, with following error Platform error vacuum.viomise - cannot import name 'Vacuum' from 'miio' (/usr/local/lib/python3.9/site-packages/miio/init.py)
Change 6. line in vacuum.py file from
from miio import DeviceException, Vacuum # pylint: disable=import-error
to
from miio import ViomiVacuum, DeviceException # pylint: disable=import-error
and change 165. line from
vacuum = Vacuum(host, token)
to
vacuum = ViomiVacuum(host, token)
then restart to home assistant. it will work.
On line 165, it's not:
vacuum = Vacuum(host, token)
only is:
for vacuum in target_vacuums:
update_coro = vacuum.async_update_ha_state(True)
update_tasks.append(update_coro)
Still get the issue: core-2022.4.2
configuration validation's error:
Platform error vacuum.viomise - cannot import name 'Vacuum' from 'miio' (/usr/local/lib/python3.9/site-packages/miio/init.py)
I did no change from the configuration.yaml, only update the core (so the config should be still good).
Still get the issue: core-2022.4.2
configuration validation's error:
Platform error vacuum.viomise - cannot import name 'Vacuum' from 'miio' (/usr/local/lib/python3.9/site-packages/miio/init.py)
I did no change from the configuration.yaml, only update the core (so the config should be still good).
try to make
Change 6. line in vacuum.py file from
from miio import DeviceException, Vacuum # pylint: disable=import-error to from miio import ViomiVacuum, DeviceException # pylint: disable=import-error
and change 165. line from
vacuum = Vacuum(host, token) to vacuum = ViomiVacuum(host, token)
then restart to home assistant. it will work.
@AybimYazilim Thanks for suggested solution, is there any a way to make it work with an offline vacuum? it only work if i'ts connected to internet
Turn vacuum unavailable