Skip to content

Commit 344d18c

Browse files
committed
Add # noqa: SIM118
1 parent a7bb267 commit 344d18c

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:
1307+
) is None or "icon" not in active_rule.keys(): # noqa: SIM118
13081308
return None
13091309
return str(active_rule.attrib["icon"])
13101310

0 commit comments

Comments
 (0)