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

Xiaomi Air Purifier: Set speed service fixed #12602

Merged

Conversation

syssi
Copy link
Member

@syssi syssi commented Feb 22, 2018

Fixes:

2018-02-22 21:10:29 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall fan.turn_on: entity_id=[‘fan.air_purifier’], speed=auto>
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/homeassistant/core.py”, line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/fan/init.py”, line 218, in async_handle_fan_service
yield from getattr(fan, method[‘method’])(**params)
File “/home/pi/.homeassistant/custom_components/fan/xiaomi_miio.py”, line 327, in async_turn_on
result = yield from self.async_set_speed(speed)
File “/home/pi/.homeassistant/custom_components/fan/xiaomi_miio.py”, line 552, in async_set_speed
self._device.set_mode, OperationMode[speed])
File “/usr/lib/python3.5/enum.py”, line 277, in getitem
return cls.member_map[name]
KeyError: ‘auto’

@syssi syssi requested a review from rytilahti as a code owner February 22, 2018 19:06
@balloob balloob merged commit 87c6945 into home-assistant:dev Feb 22, 2018
@balloob balloob mentioned this pull request Feb 22, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants