mirror of https://github.com/home-assistant/core
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
|
||||
)
|
||||
|
||||
from_time = hourly_data[0]["from"]
|
||||
from_time = dt_util.parse_datetime(hourly_data[0]["from"])
|
||||
if from_time is None:
|
||||
continue
|
||||
start = from_time - timedelta(hours=1)
|
||||
|
|
Loading…
Reference in New Issue