We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 711b963 commit d91625fCopy full SHA for d91625f
plugwise/__init__.py
@@ -876,12 +876,11 @@ async def set_gateway_mode(self, mode: str) -> None:
876
time_2 = str(dt.date.today() - dt.timedelta(1))
877
vacation_time = time_2 + "T23:00:00.000Z"
878
end_time = "2037-04-21T08:00:53.000Z"
879
+ valid = ""
880
if mode == "away":
881
valid = (
882
f"<valid_from>{away_time}</valid_from><valid_to>{end_time}</valid_to>"
883
)
- if mode == "full":
884
- valid = ""
885
if mode == "vacation":
886
valid = f"<valid_from>{vacation_time}</valid_from><valid_to>{end_time}</valid_to>"
887
0 commit comments