mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add wind gust attribute to Météo France weather entity (#136839)
This commit is contained in:
parent
9b274a0bc4
commit
efc44d83bb
@ -161,6 +161,11 @@ class MeteoFranceWeather(
|
|||||||
"""Return the wind speed."""
|
"""Return the wind speed."""
|
||||||
return self.coordinator.data.current_forecast["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
|
@property
|
||||||
def wind_bearing(self):
|
def wind_bearing(self):
|
||||||
"""Return the wind bearing."""
|
"""Return the wind bearing."""
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>,
|
'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>,
|
||||||
'visibility_unit': <UnitOfLength.KILOMETERS: 'km'>,
|
'visibility_unit': <UnitOfLength.KILOMETERS: 'km'>,
|
||||||
'wind_bearing': 200,
|
'wind_bearing': 200,
|
||||||
|
'wind_gust_speed': 64.8,
|
||||||
'wind_speed': 28.8,
|
'wind_speed': 28.8,
|
||||||
'wind_speed_unit': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
|
'wind_speed_unit': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user