Skip to content

Commit 54b7f21

Browse files
committed
Adapt testcode as well
1 parent 489d2e8 commit 54b7f21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_smile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ async def tinker_switch(
465465
try:
466466
await smile.set_switch_state(dev_id, members, model, new_state)
467467
switch_change = True
468-
except pw_exceptions.PlugwiseException:
468+
except pw_exceptions.PlugwiseError:
469469
_LOGGER.info(" + failed as expected")
470470
except (
471471
pw_exceptions.ErrorSendingCommandError,
@@ -510,7 +510,7 @@ async def tinker_thermostat_preset(self, smile, loc_id, unhappy=False):
510510
try:
511511
await smile.set_preset(loc_id, new_preset)
512512
_LOGGER.info(" + worked as intended")
513-
except pw_exceptions.PlugwiseException:
513+
except pw_exceptions.PlugwiseError:
514514
_LOGGER.info(" + failed as expected")
515515
except (
516516
pw_exceptions.ErrorSendingCommandError,
@@ -537,7 +537,7 @@ async def tinker_thermostat_schedule(
537537
try:
538538
await smile.set_schedule_state(loc_id, new_schedule, state)
539539
_LOGGER.info(" + failed as intended")
540-
except pw_exceptions.PlugwiseException:
540+
except pw_exceptions.PlugwiseError:
541541
_LOGGER.info(" + failed as expected")
542542
except (
543543
pw_exceptions.ErrorSendingCommandError,
@@ -584,7 +584,7 @@ async def tinker_regulation_mode(smile):
584584
try:
585585
await smile.set_regulation_mode(mode)
586586
_LOGGER.info(" + worked as intended")
587-
except pw_exceptions.PlugwiseException:
587+
except pw_exceptions.PlugwiseError:
588588
_LOGGER.info(" + failed as expected")
589589

590590
@staticmethod

0 commit comments

Comments
 (0)