Skip to content

Commit 3ce37f6

Browse files
committed
Improve debug-texts
1 parent 54b7f21 commit 3ce37f6

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
@@ -466,7 +466,7 @@ async def tinker_switch(
466466
await smile.set_switch_state(dev_id, members, model, new_state)
467467
switch_change = True
468468
except pw_exceptions.PlugwiseError:
469-
_LOGGER.info(" + failed as expected")
469+
_LOGGER.info(" + locked, not switched as expected")
470470
except (
471471
pw_exceptions.ErrorSendingCommandError,
472472
pw_exceptions.ResponseError,
@@ -511,7 +511,7 @@ async def tinker_thermostat_preset(self, smile, loc_id, unhappy=False):
511511
await smile.set_preset(loc_id, new_preset)
512512
_LOGGER.info(" + worked as intended")
513513
except pw_exceptions.PlugwiseError:
514-
_LOGGER.info(" + failed as expected")
514+
_LOGGER.info(" + found invalid preset, as expected")
515515
except (
516516
pw_exceptions.ErrorSendingCommandError,
517517
pw_exceptions.ResponseError,
@@ -536,7 +536,7 @@ async def tinker_thermostat_schedule(
536536
_LOGGER.info("- Adjusting schedule to %s", f"{new_schedule}{warning}")
537537
try:
538538
await smile.set_schedule_state(loc_id, new_schedule, state)
539-
_LOGGER.info(" + failed as intended")
539+
_LOGGER.info(" + found invalid schedule, as intended")
540540
except pw_exceptions.PlugwiseError:
541541
_LOGGER.info(" + failed as expected")
542542
except (
@@ -585,7 +585,7 @@ async def tinker_regulation_mode(smile):
585585
await smile.set_regulation_mode(mode)
586586
_LOGGER.info(" + worked as intended")
587587
except pw_exceptions.PlugwiseError:
588-
_LOGGER.info(" + failed as expected")
588+
_LOGGER.info(" + found invalid mode, as expected")
589589

590590
@staticmethod
591591
async def tinker_max_boiler_temp(smile):

0 commit comments

Comments
 (0)