diff --git a/custom_components/tapo_control/manifest.json b/custom_components/tapo_control/manifest.json index 2f1215b..921ff30 100644 --- a/custom_components/tapo_control/manifest.json +++ b/custom_components/tapo_control/manifest.json @@ -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", + "version": "3.3.2", "requirements": [ "pytapo==1.2.1", "onvif-zeep-async==1.0.0", diff --git a/custom_components/tapo_control/utils.py b/custom_components/tapo_control/utils.py index 330933d..682c346 100644 --- a/custom_components/tapo_control/utils.py +++ b/custom_components/tapo_control/utils.py @@ -4,6 +4,7 @@ import urllib.parse import socket import datetime +import time from onvif import ONVIFCamera from pytapo import Tapo from .const import ( @@ -197,7 +198,11 @@ async def syncTime(hass, entry): time_params.DaylightSavings = True time_params.UTCDateTime = { "Date": {"Year": now.year, "Month": now.month, "Day": now.day}, - "Time": {"Hour": now.hour, "Minute": now.minute, "Second": now.second}, + "Time": { + "Hour": now.hour if time.localtime().tm_isdst == "0" else now.hour + 1, + "Minute": now.minute, + "Second": now.second, + }, } await device_mgmt.SetSystemDateAndTime(time_params) hass.data[DOMAIN][entry.entry_id][