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

KeyError: 'motor1_speed' error #4

Closed
tyjtyj opened this issue Sep 3, 2017 · 2 comments
Closed

KeyError: 'motor1_speed' error #4

tyjtyj opened this issue Sep 3, 2017 · 2 comments

Comments

@tyjtyj
Copy link

tyjtyj commented Sep 3, 2017

Everything was fine if i comment out the line 191.

home-assistant = 0.52.1 (on rpi3)
mirobo = 0.1.4

2017-09-03 08:34:38 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 235, in _step
    result = coro.send(value)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity
    new_entity, self, update_before_add=update_before_add
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 210, in async_add_entity
    yield from entity.async_update()
  File "/home/homeassistant/.homeassistant/custom_components/fan/xiaomi_airpurifier.py", line 191, in async_update
    ATTR_MOTOR_SPEED: state.motor_speed
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/airpurifier.py", line 166, in motor_speed
    return self.data["motor1_speed"]
KeyError: 'motor1_speed'

@syssi
Copy link
Owner

syssi commented Sep 3, 2017

The air purifier support of mirobo 0.1.4 is slightly broken. It's fixed in newer revisions because of

rytilahti/python-miio#40

The custom component requires revision

REQUIREMENTS = ['https://github.com/rytilahti/python-mirobo/archive/'
                '168f5c0ff381b3b02cedd0917597195b3c521a20.zip#'
                'python-mirobo']

at least. I will resync all components based on mirobo to resolve the mixed dependency issues. A mirobo release > 0.1.4. is required.

@tyjtyj
Copy link
Author

tyjtyj commented Sep 3, 2017

Awesome..... thanks for responding...

Let just wait for mirobo stable release > 0.1.4.

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

2 participants