Fix blocking I/O in the event loop in meteo_france (#118429)

This commit is contained in:
J. Nick Koston 2024-05-29 11:37:24 -10:00 committed by Franck Nijhof
parent ebf9013569
commit 9728103de4
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -200,7 +200,7 @@ class MeteoFranceWeather(
break
forecast_data.append(
{
ATTR_FORECAST_TIME: self.coordinator.data.timestamp_to_locale_time(
ATTR_FORECAST_TIME: dt_util.utc_from_timestamp(
forecast["dt"]
).isoformat(),
ATTR_FORECAST_CONDITION: format_condition(