mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 10:31:39 +02:00
Fix timezone for growatt lastdataupdate (#67684)
* Added timezone for growatt lastdataupdate (#67646) * Growatt lastdataupdate set to local timezone
This commit is contained in:
committed by
Paulus Schoutsen
parent
4aaafb0a99
commit
87492e6b3e
@@ -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
|
||||
|
Reference in New Issue
Block a user