Skip to content

Commit 3d832fd

Browse files
committed
Add another except
1 parent c1adf39 commit 3d832fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_smile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ async def tinker_thermostat_schedule(
534534
try:
535535
await smile.set_schedule_state(loc_id, new_schedule, state)
536536
_LOGGER.info(" + failed as intended")
537+
except pw_exceptions.PlugwiseException:
538+
_LOGGER.info(" + failed as expected")
537539
except (
538540
pw_exceptions.ErrorSendingCommandError,
539541
pw_exceptions.ResponseError,
@@ -555,7 +557,7 @@ async def tinker_thermostat(
555557
good_schedules = ["Weekschema"]
556558

557559
await self.tinker_thermostat_temp(smile, loc_id, unhappy)
558-
await self.tinker_thermostat_preset(smile, loc_id)
560+
await self.tinker_thermostat_preset(smile, loc_id, unhappy)
559561
await self.tinker_thermostat_schedule(
560562
smile, loc_id, "on", good_schedules, unhappy
561563
)

0 commit comments

Comments
 (0)