Fix Plugwise hvac action and mode (#41550)
This commit is contained in:
6 files changed
+16
-18
No files matched your search
@@ -80,7 +80,7 @@ def mock_smile_adam():
|
||||
return_value=True
|
||||
)
|
||||
smile_mock.return_value.single_master_thermostat.side_effect = Mock(
|
||||
return_value=True
|
||||
return_value=False
|
||||
)
|
||||
smile_mock.return_value.set_schedule_state.side_effect = AsyncMock(
|
||||
return_value=True
|
||||
|
||||
@@ -13,7 +13,7 @@ async def test_adam_climate_entity_attributes(hass, mock_smile_adam):
|
||||
state = hass.states.get("climate.zone_lisa_wk")
|
||||
attrs = state.attributes
|
||||
|
||||
assert attrs["hvac_modes"] is None
|
||||
assert attrs["hvac_modes"] == ["heat", "auto"]
|
||||
|
||||
assert "preset_modes" in attrs
|
||||
assert "no_frost" in attrs["preset_modes"]
|
||||
@@ -29,7 +29,7 @@ async def test_adam_climate_entity_attributes(hass, mock_smile_adam):
|
||||
state = hass.states.get("climate.zone_thermostat_jessie")
|
||||
attrs = state.attributes
|
||||
|
||||
assert attrs["hvac_modes"] is None
|
||||
assert attrs["hvac_modes"] == ["heat", "auto"]
|
||||
|
||||
assert "preset_modes" in attrs
|
||||
assert "no_frost" in attrs["preset_modes"]
|
||||
|
||||
Reference in new issue
Block a user