We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c7895a commit 595b543Copy full SHA for 595b543
plugwise/__init__.py
@@ -875,10 +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)
879
- .astimezone(dt.timezone.utc)
880
- .isoformat(timespec="milliseconds")
881
- .replace("+00:00", "Z")
+ away_time = dt.datetime.fromisoformat(time_1).astimezone(dt.timezone.utc).isoformat(timespec="milliseconds").replace("+00:00", "Z")
882
valid = (
883
f"<valid_from>{away_time}</valid_from><valid_to>{end_time}</valid_to>"
884
)
0 commit comments