Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey committed Apr 5, 2024
1 parent 816f399 commit 132c057
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,13 @@ async def test_on_with_off_color(
assert bool(entity.state["on"]) is True
assert entity.state["color_temp"] == 235
assert entity.state["color_mode"] == ColorMode.COLOR_TEMP
assert entity.supported_color_modes == {ColorMode.COLOR_TEMP, ColorMode.XY}
assert entity._supported_color_modes == {
ColorMode.COLOR_TEMP,
ColorMode.XY,
ColorMode.ONOFF,
ColorMode.BRIGHTNESS,
}

# now let's turn off the Execute_if_off option and see if the old behavior is restored
dev1_cluster_color.PLUGGED_ATTR_READS = {"options": 0}
Expand Down

0 comments on commit 132c057

Please sign in to comment.