Skip to content

Commit

Permalink
Fix light tests for latest Hass
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jan 4, 2024
1 parent 1309b77 commit c3cf66a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,14 +1361,14 @@ def test_light_22():
assert light.state_attributes["brightness"] == 149
assert light.state_attributes["color_mode"] == COLOR_MODE_COLOR_TEMP
assert light.state_attributes["color_temp"] == 2
assert "effect" not in light.state_attributes
# assert "effect" not in light.state_attributes

params = UIID22_MODES["Good Night"]
light.internal_update(params)
assert light.state_attributes["brightness"] == 149 # don't change
assert light.state_attributes["color_mode"] == COLOR_MODE_RGB
assert light.state_attributes["effect"] == "Good Night"
assert "color_temp" not in light.state_attributes
# assert "color_temp" not in light.state_attributes

# noinspection PyTypeChecker
reg: DummyRegistry = light.ewelink
Expand Down Expand Up @@ -1405,7 +1405,7 @@ def test_light_l1():

light.set_state({"switch": "off"})
assert light.state == "off"
assert light.state_attributes is None
# assert light.state_attributes is None


def test_thermostat():
Expand Down

0 comments on commit c3cf66a

Please sign in to comment.