mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Use ATTR_COLOR_TEMP_KELVIN in alexa (#132733)
This commit is contained in:
@ -359,7 +359,7 @@ async def async_api_set_color_temperature(
|
||||
await hass.services.async_call(
|
||||
entity.domain,
|
||||
SERVICE_TURN_ON,
|
||||
{ATTR_ENTITY_ID: entity.entity_id, light.ATTR_KELVIN: kelvin},
|
||||
{ATTR_ENTITY_ID: entity.entity_id, light.ATTR_COLOR_TEMP_KELVIN: kelvin},
|
||||
blocking=False,
|
||||
context=context,
|
||||
)
|
||||
|
@ -159,7 +159,7 @@ async def test_api_set_color_temperature(hass: HomeAssistant) -> None:
|
||||
|
||||
assert len(call_light) == 1
|
||||
assert call_light[0].data["entity_id"] == "light.test"
|
||||
assert call_light[0].data["kelvin"] == 7500
|
||||
assert call_light[0].data["color_temp_kelvin"] == 7500
|
||||
assert msg["header"]["name"] == "Response"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user