We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f2b5d7 commit 14ec8b4Copy full SHA for 14ec8b4
plugwise/__init__.py
@@ -874,7 +874,7 @@ async def set_gateway_mode(self, mode: str) -> None:
874
end_time = "2037-04-21T08:00:53.000Z"
875
valid = ""
876
if mode == "away":
877
- time_1 = self._domain_objects("./gateway/time").text
+ time_1 = self._domain_objects.find("./gateway/time").text
878
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>"
0 commit comments