Add wind gust attribute to Météo France weather entity (#136839)

This commit is contained in:
Hervé Cauwelier 2025-04-14 15:41:10 +02:00 committed by GitHub
parent 9b274a0bc4
commit efc44d83bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -161,6 +161,11 @@ class MeteoFranceWeather(
"""Return the wind speed."""
return self.coordinator.data.current_forecast["wind"]["speed"]
@property
def native_wind_gust_speed(self):
"""Return the wind gust speed."""
return self.coordinator.data.current_forecast["wind"].get("gust")
@property
def wind_bearing(self):
"""Return the wind bearing."""

View File

@ -47,6 +47,7 @@
'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>,
'visibility_unit': <UnitOfLength.KILOMETERS: 'km'>,
'wind_bearing': 200,
'wind_gust_speed': 64.8,
'wind_speed': 28.8,
'wind_speed_unit': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),