Skip to content

Commit 3f2b5d7

Browse files
author
autoruff
committed
fixup: gateway_away Python code fixed using ruff
1 parent 595b543 commit 3f2b5d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ async def set_gateway_mode(self, mode: str) -> None:
875875
valid = ""
876876
if mode == "away":
877877
time_1 = self._domain_objects("./gateway/time").text
878-
away_time = dt.datetime.fromisoformat(time_1).astimezone(dt.timezone.utc).isoformat(timespec="milliseconds").replace("+00:00", "Z")
878+
away_time = dt.datetime.fromisoformat(time_1).astimezone(dt.UTC).isoformat(timespec="milliseconds").replace("+00:00", "Z")
879879
valid = (
880880
f"<valid_from>{away_time}</valid_from><valid_to>{end_time}</valid_to>"
881881
)

0 commit comments

Comments
 (0)