mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Tibber, fix date parsing (#83067)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net> Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
This commit is contained in:
parent
1d1b59b800
commit
845ce5c6ea
@ -613,7 +613,7 @@ class TibberDataCoordinator(DataUpdateCoordinator):
|
|||||||
else home.hourly_consumption_data
|
else home.hourly_consumption_data
|
||||||
)
|
)
|
||||||
|
|
||||||
from_time = hourly_data[0]["from"]
|
from_time = dt_util.parse_datetime(hourly_data[0]["from"])
|
||||||
if from_time is None:
|
if from_time is None:
|
||||||
continue
|
continue
|
||||||
start = from_time - timedelta(hours=1)
|
start = from_time - timedelta(hours=1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user