Skip to content

Commit a7bb267

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bc8b6af commit a7bb267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ def _preset(self, loc_id: str) -> str | None:
13041304
locator = "./rule[active='true']/directives/when/then"
13051305
if (
13061306
active_rule := self._domain_objects.find(locator)
1307-
) is None or "icon" not in active_rule.keys():
1307+
) is None or "icon" not in active_rule:
13081308
return None
13091309
return str(active_rule.attrib["icon"])
13101310

0 commit comments

Comments
 (0)