Fix meteo_france timestamp sensor (#61210)

pull/61219/head
Paulus Schoutsen 2021-12-07 22:25:42 -08:00 committed by GitHub
parent ea42384afd
commit 0780bf142f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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):