Skip to content

Commit

Permalink
Fix: Daylight saving not working in winter
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajNyiri committed May 6, 2021
1 parent fe14ff7 commit 10fadda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/tapo_control/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"documentation": "https://github.com/JurajNyiri/HomeAssistant-Tapo-Control",
"issue_tracker": "https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues",
"codeowners": ["@JurajNyiri"],
"version": "3.3.2",
"version": "3.3.3",
"requirements": [
"pytapo==1.2.1",
"onvif-zeep-async==1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/tapo_control/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async def syncTime(hass, entry):
time_params.UTCDateTime = {
"Date": {"Year": now.year, "Month": now.month, "Day": now.day},
"Time": {
"Hour": now.hour if time.localtime().tm_isdst == "0" else now.hour + 1,
"Hour": now.hour if time.localtime().tm_isdst == 0 else now.hour + 1,
"Minute": now.minute,
"Second": now.second,
},
Expand Down

0 comments on commit 10fadda

Please sign in to comment.