Migrate elgato light tests to use Kelvin (#133004)

This commit is contained in:
epenet 2024-12-12 09:53:55 +01:00 committed by GitHub
parent 85d4c48d6f
commit bb610acb86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ from syrupy.assertion import SnapshotAssertion
from homeassistant.components.elgato.const import DOMAIN, SERVICE_IDENTIFY from homeassistant.components.elgato.const import DOMAIN, SERVICE_IDENTIFY
from homeassistant.components.light import ( from homeassistant.components.light import (
ATTR_BRIGHTNESS, ATTR_BRIGHTNESS,
ATTR_COLOR_TEMP, ATTR_COLOR_TEMP_KELVIN,
ATTR_HS_COLOR, ATTR_HS_COLOR,
DOMAIN as LIGHT_DOMAIN, DOMAIN as LIGHT_DOMAIN,
) )
@ -74,7 +74,7 @@ async def test_light_change_state_temperature(
{ {
ATTR_ENTITY_ID: "light.frenck", ATTR_ENTITY_ID: "light.frenck",
ATTR_BRIGHTNESS: 255, ATTR_BRIGHTNESS: 255,
ATTR_COLOR_TEMP: 100, ATTR_COLOR_TEMP_KELVIN: 10000,
}, },
blocking=True, blocking=True,
) )