core/homeassistant/components/emulated_hue
Rafał Słota 080827fb62
Fix light.turn_on for emulated_hue (#31195)
* Fix light.turn_on for emulated_hue

HarmonyHub sends `{'xy': [0, 0], 'on': True, 'bri': 0}` when turning on lights that do not support brightness control. Unfortunately current logic always uses  brightness value to control on/off state which makes no sense for lights that don't support brightness at all. This change fixes that behavior, making light without brightness control usable with HarmonyHub and probably some other remotes.

* Test 'no_brightness' lights
2020-01-29 12:11:22 +01:00
..
__init__.py Upgrade pydocstyle to 5.0.1 (#29830) 2019-12-10 23:25:06 +01:00
hue_api.py Fix light.turn_on for emulated_hue (#31195) 2020-01-29 12:11:22 +01:00
manifest.json Remove self as Emulated Hue codeowner (#30654) 2020-01-10 22:35:18 +01:00
services.yaml Add stub services.yaml and make validation mandatory (#23213) 2019-04-18 15:13:35 -07:00
upnp.py Be consistent with Home Assistant and Hass.io spelling (#30500) 2020-01-05 14:09:17 +02:00