mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Migrate tradfri light tests to use Kelvin (#133030)
This commit is contained in:
parent
fd811c85e9
commit
f0391f4963
@ -9,10 +9,10 @@ from pytradfri.device import Device
|
|||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
ATTR_BRIGHTNESS,
|
ATTR_BRIGHTNESS,
|
||||||
ATTR_COLOR_MODE,
|
ATTR_COLOR_MODE,
|
||||||
ATTR_COLOR_TEMP,
|
ATTR_COLOR_TEMP_KELVIN,
|
||||||
ATTR_HS_COLOR,
|
ATTR_HS_COLOR,
|
||||||
ATTR_MAX_MIREDS,
|
ATTR_MAX_COLOR_TEMP_KELVIN,
|
||||||
ATTR_MIN_MIREDS,
|
ATTR_MIN_COLOR_TEMP_KELVIN,
|
||||||
ATTR_SUPPORTED_COLOR_MODES,
|
ATTR_SUPPORTED_COLOR_MODES,
|
||||||
DOMAIN as LIGHT_DOMAIN,
|
DOMAIN as LIGHT_DOMAIN,
|
||||||
ColorMode,
|
ColorMode,
|
||||||
@ -67,9 +67,9 @@ def bulb_cws() -> str:
|
|||||||
"light.test_ws",
|
"light.test_ws",
|
||||||
{
|
{
|
||||||
ATTR_BRIGHTNESS: 250,
|
ATTR_BRIGHTNESS: 250,
|
||||||
ATTR_COLOR_TEMP: 400,
|
ATTR_COLOR_TEMP_KELVIN: 2500,
|
||||||
ATTR_MIN_MIREDS: 250,
|
ATTR_MAX_COLOR_TEMP_KELVIN: 4000,
|
||||||
ATTR_MAX_MIREDS: 454,
|
ATTR_MIN_COLOR_TEMP_KELVIN: 2202,
|
||||||
ATTR_SUPPORTED_COLOR_MODES: [ColorMode.COLOR_TEMP],
|
ATTR_SUPPORTED_COLOR_MODES: [ColorMode.COLOR_TEMP],
|
||||||
ATTR_COLOR_MODE: ColorMode.COLOR_TEMP,
|
ATTR_COLOR_MODE: ColorMode.COLOR_TEMP,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user