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 03fafd2 commit 76412abCopy full SHA for 76412ab
plugwise/smile.py
@@ -548,7 +548,7 @@ async def _set_preset_legacy(self, preset: str) -> None:
548
async def set_preset(self, loc_id: str, preset: str) -> None:
549
"""Set the given Preset on the relevant Thermostat - from LOCATIONS."""
550
if (presets := self._presets(loc_id)) is None:
551
- raise PlugwiseError("Plugwise: no presets available.")
+ raise PlugwiseError("Plugwise: no presets available.") # pragma: no cover
552
if preset not in list(presets):
553
raise PlugwiseError("Plugwise: invalid preset.")
554
0 commit comments