Skip to content

Commit

Permalink
Bump API version
Browse files Browse the repository at this point in the history
- Fix for #300
- Add additional unit test
  • Loading branch information
PeteRager committed Feb 1, 2024
1 parent c3cf764 commit a05c686
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/lennoxs30/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"iot_class": "local_push",
"issue_tracker" : "https://github.com/PeteRager/lennoxs30/issues",
"quality_scale": "platinum",
"requirements": ["lennoxs30api==0.2.12"],
"version": "2024.1.1"
"requirements": ["lennoxs30api==0.2.13"],
"version": "2024.1.2"
}
15 changes: 15 additions & 0 deletions tests/test_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,21 @@ async def test_climate_set_temperature(hass, manager_mz: Manager, caplog):
assert ex is not None
assert "System Mode is [off]" in str(ex)

system.single_setpoint_mode = False
zone.systemMode = "off"
with patch.object(c, "async_set_hvac_mode") as async_set_hvac_mode:
with patch.object(zone, "perform_setpoint") as perform_setpoint:
with caplog.at_level(logging.ERROR):
caplog.clear()
ex: HomeAssistantError = None
try:
await c.async_set_temperature(temperature=73)
except HomeAssistantError as err:
ex = err
assert ex is not None
assert "System Mode is [off]" in str(ex)
system.single_setpoint_mode = False

zone.systemMode = "cool"
with patch.object(c, "async_set_hvac_mode") as async_set_hvac_mode:
with patch.object(zone, "perform_setpoint") as perform_setpoint:
Expand Down

0 comments on commit a05c686

Please sign in to comment.