Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def _convert_weather_response(self, weather_response):
temperature_feeling = None
town_id = None
town_name = None
town_timestamp = dt_util.as_utc(elaborated)
town_timestamp = dt_util.as_utc(elaborated).isoformat()
wind_bearing = None
wind_max_speed = None
wind_speed = None
Expand Down
2 changes: 1 addition & 1 deletion tests/components/aemet/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def test_aemet_weather_create_sensors(hass):
assert state.state == "Getafe"

state = hass.states.get("sensor.aemet_town_timestamp")
assert state.state == "2021-01-09 11:47:45+00:00"
assert state.state == "2021-01-09T11:47:45+00:00"

state = hass.states.get("sensor.aemet_wind_bearing")
assert state.state == "90.0"
Expand Down