mirror of
https://github.com/elisspace/core.git
synced 2026-09-30 14:29:54 +00:00
Restore color_temp handling for lifx.set_state (#82067)
fixes undefined
This commit is contained in:
@@ -1524,6 +1524,15 @@ async def test_lifx_set_state_kelvin(hass: HomeAssistant) -> None:
|
||||
assert bulb.set_color.calls[0][0][0] == [32000, 0, 25700, 2700]
|
||||
bulb.set_color.reset_mock()
|
||||
|
||||
await hass.services.async_call(
|
||||
DOMAIN,
|
||||
"set_state",
|
||||
{ATTR_ENTITY_ID: entity_id, ATTR_BRIGHTNESS: 255, ATTR_COLOR_TEMP: 400},
|
||||
blocking=True,
|
||||
)
|
||||
assert bulb.set_color.calls[0][0][0] == [32000, 0, 65535, 2500]
|
||||
bulb.set_color.reset_mock()
|
||||
|
||||
|
||||
async def test_infrared_color_bulb(hass: HomeAssistant) -> None:
|
||||
"""Test setting infrared with a color bulb."""
|
||||
|
||||
Reference in New Issue
Block a user