From 0780bf142fc9a1d3872bb5da551b942fcf2cc2c7 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 7 Dec 2021 22:25:42 -0800 Subject: [PATCH] Fix meteo_france timestamp sensor (#61210) --- homeassistant/components/meteo_france/sensor.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/meteo_france/sensor.py b/homeassistant/components/meteo_france/sensor.py index ac1ccc13009..7f4e3e0a77b 100644 --- a/homeassistant/components/meteo_france/sensor.py +++ b/homeassistant/components/meteo_france/sensor.py @@ -142,11 +142,7 @@ class MeteoFranceRainSensor(MeteoFranceSensor): (cadran for cadran in self.coordinator.data.forecast if cadran["rain"] > 1), None, ) - return ( - dt_util.utc_from_timestamp(next_rain["dt"]).isoformat() - if next_rain - else None - ) + return dt_util.utc_from_timestamp(next_rain["dt"]) if next_rain else None @property def extra_state_attributes(self):