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 a7bb267 commit 344d18cCopy full SHA for 344d18c
plugwise/helper.py
@@ -1304,7 +1304,7 @@ def _preset(self, loc_id: str) -> str | None:
1304
locator = "./rule[active='true']/directives/when/then"
1305
if (
1306
active_rule := self._domain_objects.find(locator)
1307
- ) is None or "icon" not in active_rule:
+ ) is None or "icon" not in active_rule.keys(): # noqa: SIM118
1308
return None
1309
return str(active_rule.attrib["icon"])
1310
0 commit comments