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 b74e505 commit f929b89Copy full SHA for f929b89
plugwise/legacy/smile.py
@@ -221,8 +221,7 @@ async def set_schedule_state(
221
new_state = "true"
222
223
locator = f'.//*[@id="{schedule_rule_id}"]/template'
224
- for rule in self._domain_objects.findall(locator):
225
- template_id = rule.attrib["id"]
+ template_id = self._domain_objects.find(locator).attrib["id"]
226
227
data = f'''
228
<rules>
0 commit comments