Skip to content

Commit 259a737

Browse files
committed
Add test-asserts for now present hvac_actions
1 parent 7e7c620 commit 259a737

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/components/plugwise/test_climate.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ async def test_adam_climate_entity_attributes(
3434
state = hass.states.get("climate.woonkamer")
3535
assert state
3636
assert state.state == HVACMode.AUTO
37+
assert state.attributes["hvac_action"] == "heating"
3738
assert state.attributes["hvac_modes"] == [
3839
HVACMode.AUTO,
3940
HVACMode.HEAT,
4041
]
41-
# hvac_action is not asserted as the fixture is not in line with recent firmware functionality
42-
4342
assert "preset_modes" in state.attributes
4443
assert "no_frost" in state.attributes["preset_modes"]
4544
assert "home" in state.attributes["preset_modes"]
@@ -57,12 +56,11 @@ async def test_adam_climate_entity_attributes(
5756
state = hass.states.get("climate.jessie")
5857
assert state
5958
assert state.state == HVACMode.AUTO
59+
assert state.attributes["hvac_action"] == "idle"
6060
assert state.attributes["hvac_modes"] == [
6161
HVACMode.AUTO,
6262
HVACMode.HEAT,
6363
]
64-
# hvac_action is not asserted as the fixture is not in line with recent firmware functionality
65-
6664
assert "preset_modes" in state.attributes
6765
assert "no_frost" in state.attributes["preset_modes"]
6866
assert "home" in state.attributes["preset_modes"]

0 commit comments

Comments
 (0)