mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Fix timezone for growatt lastdataupdate (#67684)
* Added timezone for growatt lastdataupdate (#67646) * Growatt lastdataupdate set to local timezone
This commit is contained in:
parent
74c339eb7b
commit
6b4e9374b7
@ -222,7 +222,7 @@ class GrowattData:
|
|||||||
date_now = dt.now().date()
|
date_now = dt.now().date()
|
||||||
last_updated_time = dt.parse_time(str(sorted_keys[-1]))
|
last_updated_time = dt.parse_time(str(sorted_keys[-1]))
|
||||||
mix_detail["lastdataupdate"] = datetime.datetime.combine(
|
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
|
# Dashboard data is largely inaccurate for mix system but it is the only call with the ability to return the combined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user