1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 20:39:01 +00:00

Add color_mode support to group light (#50165)

* Add color_mode support to group light

* Lint

* Update tests
This commit is contained in:
Erik Montnemery
2021-05-07 07:34:51 +02:00
committed by GitHub
parent 47c4c681f4
commit c2663d61d7
4 changed files with 610 additions and 134 deletions

View File

@@ -748,9 +748,9 @@ async def test_light_brightness_step(hass):
)
_, data = entity0.last_call("turn_on")
assert data["brightness"] == 126 # 100 + (255 * 0.10)
assert data["brightness"] == 116 # 90 + (255 * 0.10)
_, data = entity1.last_call("turn_on")
assert data["brightness"] == 76 # 50 + (255 * 0.10)
assert data["brightness"] == 66 # 40 + (255 * 0.10)
async def test_light_brightness_pct_conversion(hass):