From 6b4e9374b76280e3a7a6b3c93e6f62d39cad984d Mon Sep 17 00:00:00 2001 From: muppet3000 <c.m.straffon@gmail.com> Date: Mon, 7 Mar 2022 09:14:05 +0000 Subject: [PATCH] Fix timezone for growatt lastdataupdate (#67684) * Added timezone for growatt lastdataupdate (#67646) * Growatt lastdataupdate set to local timezone --- homeassistant/components/growatt_server/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/growatt_server/sensor.py b/homeassistant/components/growatt_server/sensor.py index 67095492de7..db045242987 100644 --- a/homeassistant/components/growatt_server/sensor.py +++ b/homeassistant/components/growatt_server/sensor.py @@ -222,7 +222,7 @@ class GrowattData: date_now = dt.now().date() last_updated_time = dt.parse_time(str(sorted_keys[-1])) mix_detail["lastdataupdate"] = datetime.datetime.combine( - date_now, last_updated_time + date_now, last_updated_time, dt.DEFAULT_TIME_ZONE ) # Dashboard data is largely inaccurate for mix system but it is the only call with the ability to return the combined -- GitLab