Adjust light test helpers to use Kelvin, and cleanup unused helpers (#133048)

Cleanup light test helper methods
This commit is contained in:
epenet
2024-12-12 16:49:25 +01:00
committed by GitHub
parent 33c799b2d0
commit 2ce2765e67
6 changed files with 28 additions and 114 deletions

View File

@ -1148,7 +1148,7 @@ async def test_sending_mqtt_commands_and_optimistic(
assert state.attributes.get(light.ATTR_COLOR_MODE) == "xy"
assert state.attributes.get(light.ATTR_SUPPORTED_COLOR_MODES) == color_modes
await common.async_turn_on(hass, "light.test", color_temp=125)
await common.async_turn_on(hass, "light.test", color_temp_kelvin=8000)
mqtt_mock.async_publish.assert_has_calls(
[
call("test_light_rgb/color_temp/set", "125", 2, False),
@ -1321,7 +1321,7 @@ async def test_sending_mqtt_color_temp_command_with_template(
state = hass.states.get("light.test")
assert state.state == STATE_UNKNOWN
await common.async_turn_on(hass, "light.test", color_temp=100)
await common.async_turn_on(hass, "light.test", color_temp_kelvin=10000)
mqtt_mock.async_publish.assert_has_calls(
[