Skip to content

Commit 1efa89a

Browse files
committed
Increase test coverage for set_schedule_state()
1 parent 1b4eacb commit 1efa89a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_adam.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ async def test_connect_adam_plus_anna_new(self):
8282
# Special test-case for turning a schedule off for a location via the option "off".
8383
await api.set_schedule_state("f2bf9048bef64cc5b6d5110154e33c81", "off", "on")
8484

85+
# Special test-case for setting a schedule to an invalid state.
86+
with pytest.raises(pw_exceptions.PlugwiseError):
87+
await api.set_schedule_state(
88+
"f2bf9048bef64cc5b6d5110154e33c81", "Weekschema", "eco"
89+
)
90+
8591
# bad schedule-state test
8692
result = await self.tinker_thermostat_schedule(
8793
api,

0 commit comments

Comments
 (0)