Skip to content

Commit 22ec44f

Browse files
committed
Ruff fix
1 parent 6f42cae commit 22ec44f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugwise/legacy/smile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ async def set_preset(self, _: str, preset: str) -> None:
172172

173173
locator = f'rule/directives/when/then[@icon="{preset}"].../.../...'
174174
rule_id = self._domain_objects.find(locator).attrib["id"]
175-
data = (
176-
f"<rules><rule id='{rule_id}'><active>true</active></rule></rules>"
177-
)
175+
data = f"<rules><rule id='{rule_id}'><active>true</active></rule></rules>"
178176
await self.call_request(RULES, method="put", data=data)
179177

180178
async def set_regulation_mode(self, mode: str) -> None:

0 commit comments

Comments
 (0)