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 b9d2928 commit 18bbb0fCopy full SHA for 18bbb0f
plugwise/smile.py
@@ -540,8 +540,7 @@ async def set_schedule_state(
540
async def _set_preset_legacy(self, preset: str) -> None:
541
"""Set the given Preset on the relevant Thermostat - from DOMAIN_OBJECTS."""
542
locator = f'rule/directives/when/then[@icon="{preset}"].../.../...'
543
- if (rule := self._domain_objects.find(locator)) is None:
544
- raise PlugwiseError("Plugwise: invalid preset.")
+ rule = self._domain_objects.find(locator)
545
546
uri = RULES
547
data = f'<rules><rule id="{rule.attrib["id"]}"><active>true</active></rule></rules>'
0 commit comments