Adapt group to color temperature in K (#79719)

* Adapt group to color temperature in K

* Adjust tests

* Adjust tests
This commit is contained in:
Erik Montnemery 2022-10-10 14:57:22 +02:00 committed by GitHub
parent 1e5908d3a8
commit 2ee6ea9877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 38 deletions

View file

@ -37,13 +37,13 @@ class MockLight(MockToggleEntity, LightEntity):
"""Mock light class."""
color_mode = None
max_mireds = 500
min_mireds = 153
max_color_temp_kelvin = 6500
min_color_temp_kelvin = 2000
supported_color_modes = None
supported_features = 0
brightness = None
color_temp = None
color_temp_kelvin = None
hs_color = None
rgb_color = None
rgbw_color = None
@ -61,7 +61,7 @@ class MockLight(MockToggleEntity, LightEntity):
"rgb_color",
"rgbw_color",
"rgbww_color",
"color_temp",
"color_temp_kelvin",
]:
setattr(self, key, value)
if key == "white":