Skip to content

Commit

Permalink
Added attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarne Riis committed Sep 18, 2023
1 parent d03a00d commit 11a6631
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/weatherflow_forecast/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ class WeatherFlowWeather(SingleCoordinatorWeatherEntity[WeatherFlowForecastDataU
)
_attr_has_entity_name = True
_attr_native_temperature_unit = UnitOfTemperature.CELSIUS
_attr_native_precipitation_unit = UnitOfPrecipitationDepth.MILLIMETERS
_attr_native_pressure_unit = UnitOfPressure.HPA
_attr_native_wind_speed_unit = UnitOfSpeed.METERS_PER_SECOND
_attr_supported_features = (
WeatherEntityFeature.FORECAST_DAILY | WeatherEntityFeature.FORECAST_HOURLY
)

0 comments on commit 11a6631

Please sign in to comment.