mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
aemet: drop isoformat() from timestamps
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
@@ -286,7 +286,7 @@ class WeatherUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
temperature_feeling = None
|
temperature_feeling = None
|
||||||
town_id = None
|
town_id = None
|
||||||
town_name = None
|
town_name = None
|
||||||
town_timestamp = dt_util.as_utc(elaborated).isoformat()
|
town_timestamp = dt_util.as_utc(elaborated)
|
||||||
wind_bearing = None
|
wind_bearing = None
|
||||||
wind_max_speed = None
|
wind_max_speed = None
|
||||||
wind_speed = None
|
wind_speed = None
|
||||||
@@ -312,7 +312,7 @@ class WeatherUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
|
|
||||||
# Overwrite weather values with closest station data (if present)
|
# Overwrite weather values with closest station data (if present)
|
||||||
if station_data:
|
if station_data:
|
||||||
station_timestamp = dt_util.as_utc(station_dt).isoformat()
|
station_timestamp = dt_util.as_utc(station_dt)
|
||||||
if (now_utc - station_dt) <= STATION_MAX_DELTA:
|
if (now_utc - station_dt) <= STATION_MAX_DELTA:
|
||||||
if AEMET_ATTR_STATION_HUMIDITY in station_data:
|
if AEMET_ATTR_STATION_HUMIDITY in station_data:
|
||||||
humidity = format_float(station_data[AEMET_ATTR_STATION_HUMIDITY])
|
humidity = format_float(station_data[AEMET_ATTR_STATION_HUMIDITY])
|
||||||
|
Reference in New Issue
Block a user