Skip to content

Commit

Permalink
Migrate esphome light tests to use Kelvin (#133008)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Dec 12, 2024
1 parent 6d042d9 commit 37f2bde
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/components/esphome/test_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
ATTR_FLASH,
ATTR_HS_COLOR,
ATTR_MAX_COLOR_TEMP_KELVIN,
ATTR_MAX_MIREDS,
ATTR_MIN_COLOR_TEMP_KELVIN,
ATTR_MIN_MIREDS,
ATTR_RGB_COLOR,
ATTR_RGBW_COLOR,
ATTR_RGBWW_COLOR,
Expand Down Expand Up @@ -1379,9 +1377,6 @@ async def test_light_color_temp(
assert state.state == STATE_ON
attributes = state.attributes

assert attributes[ATTR_MIN_MIREDS] == 153
assert attributes[ATTR_MAX_MIREDS] == 370

assert attributes[ATTR_MIN_COLOR_TEMP_KELVIN] == 2700
assert attributes[ATTR_MAX_COLOR_TEMP_KELVIN] == 6500
await hass.services.async_call(
Expand Down Expand Up @@ -1454,9 +1449,6 @@ async def test_light_color_temp_no_mireds_set(
assert state.state == STATE_ON
attributes = state.attributes

assert attributes[ATTR_MIN_MIREDS] is None
assert attributes[ATTR_MAX_MIREDS] is None

assert attributes[ATTR_MIN_COLOR_TEMP_KELVIN] == 0
assert attributes[ATTR_MAX_COLOR_TEMP_KELVIN] == 0
await hass.services.async_call(
Expand Down Expand Up @@ -1558,8 +1550,6 @@ async def test_light_color_temp_legacy(

assert attributes[ATTR_COLOR_MODE] == ColorMode.COLOR_TEMP
assert attributes[ATTR_SUPPORTED_COLOR_MODES] == [ColorMode.COLOR_TEMP]
assert attributes[ATTR_MIN_MIREDS] == 153
assert attributes[ATTR_MAX_MIREDS] == 370

assert attributes[ATTR_MIN_COLOR_TEMP_KELVIN] == 2700
assert attributes[ATTR_MAX_COLOR_TEMP_KELVIN] == 6500
Expand Down

0 comments on commit 37f2bde

Please sign in to comment.