We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 047625a commit 88b0085Copy full SHA for 88b0085
tests/test_smile.py
@@ -581,8 +581,11 @@ async def tinker_regulation_mode(smile):
581
warning = " Negative test"
582
mode = mode[1:]
583
_LOGGER.info("%s", f"- Adjusting regulation mode to {mode}{warning}")
584
- await smile.set_regulation_mode(mode)
585
- _LOGGER.info(" + worked as intended")
+ try:
+ await smile.set_regulation_mode(mode)
586
+ _LOGGER.info(" + worked as intended")
587
+ except pw_exceptions.PlugwiseException:
588
+ _LOGGER.info(" + failed as expected")
589
590
@staticmethod
591
async def tinker_max_boiler_temp(smile):
0 commit comments