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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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):