We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595b543 commit 3f2b5d7Copy full SHA for 3f2b5d7
plugwise/__init__.py
@@ -875,7 +875,7 @@ async def set_gateway_mode(self, mode: str) -> None:
875
valid = ""
876
if mode == "away":
877
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")
+ away_time = dt.datetime.fromisoformat(time_1).astimezone(dt.UTC).isoformat(timespec="milliseconds").replace("+00:00", "Z")
879
valid = (
880
f"<valid_from>{away_time}</valid_from><valid_to>{end_time}</valid_to>"
881
)
0 commit comments