Skip to content

Commit c403bc6

Browse files
autoruffbouwew
authored andcommitted
fixup: relay-sw-improve Python code fixed using ruff
1 parent eec345d commit c403bc6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plugwise/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ async def set_switch_state(
401401
) -> bool:
402402
"""Set the given State of the relevant Switch."""
403403
try:
404-
return await self._smile_api.set_switch_state(appl_id, members, model, state)
404+
return await self._smile_api.set_switch_state(
405+
appl_id, members, model, state
406+
)
405407
except ConnectionFailedError as exc:
406408
raise ConnectionFailedError(
407409
f"Failed to set switch state: {str(exc)}"

plugwise/legacy/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ async def _set_groupswitch_member_state(
298298
if not self.gw_entities[member]["switches"]["lock"]:
299299
uri = f"{APPLIANCES};id={member}/relay"
300300
await self.call_request(uri, method="put", data=data)
301-
301+
302302
return True
303303

304304
async def set_temperature(self, _: str, items: dict[str, float]) -> None:

0 commit comments

Comments
 (0)