mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Use new device class in buienradar (#83363)
This commit is contained in:
parent
c2da664bcc
commit
d1bbd241aa
@ -35,12 +35,12 @@ from homeassistant.const import (
|
|||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
DEGREE,
|
DEGREE,
|
||||||
IRRADIATION_WATTS_PER_SQUARE_METER,
|
IRRADIATION_WATTS_PER_SQUARE_METER,
|
||||||
LENGTH_KILOMETERS,
|
|
||||||
LENGTH_MILLIMETERS,
|
|
||||||
PERCENTAGE,
|
PERCENTAGE,
|
||||||
PRESSURE_HPA,
|
UnitOfLength,
|
||||||
SPEED_KILOMETERS_PER_HOUR,
|
UnitOfPrecipitationDepth,
|
||||||
TEMP_CELSIUS,
|
UnitOfPressure,
|
||||||
|
UnitOfSpeed,
|
||||||
|
UnitOfTemperature,
|
||||||
UnitOfVolumetricFlux,
|
UnitOfVolumetricFlux,
|
||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
@ -110,7 +110,7 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="feeltemperature",
|
key="feeltemperature",
|
||||||
name="Feel temperature",
|
name="Feel temperature",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
@ -123,23 +123,22 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="temperature",
|
key="temperature",
|
||||||
name="Temperature",
|
name="Temperature",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="groundtemperature",
|
key="groundtemperature",
|
||||||
name="Ground temperature",
|
name="Ground temperature",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="windspeed",
|
key="windspeed",
|
||||||
name="Wind speed",
|
name="Wind speed",
|
||||||
native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR,
|
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
device_class=SensorDeviceClass.SPEED,
|
device_class=SensorDeviceClass.WIND_SPEED,
|
||||||
icon="mdi:weather-windy",
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
@ -162,23 +161,22 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="pressure",
|
key="pressure",
|
||||||
name="Pressure",
|
name="Pressure",
|
||||||
native_unit_of_measurement=PRESSURE_HPA,
|
native_unit_of_measurement=UnitOfPressure.HPA,
|
||||||
icon="mdi:gauge",
|
icon="mdi:gauge",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="visibility",
|
key="visibility",
|
||||||
name="Visibility",
|
name="Visibility",
|
||||||
native_unit_of_measurement=LENGTH_KILOMETERS,
|
native_unit_of_measurement=UnitOfLength.KILOMETERS,
|
||||||
device_class=SensorDeviceClass.DISTANCE,
|
device_class=SensorDeviceClass.DISTANCE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="windgust",
|
key="windgust",
|
||||||
name="Wind gust",
|
name="Wind gust",
|
||||||
native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR,
|
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
device_class=SensorDeviceClass.SPEED,
|
device_class=SensorDeviceClass.WIND_SPEED,
|
||||||
icon="mdi:weather-windy",
|
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="precipitation",
|
key="precipitation",
|
||||||
@ -203,174 +201,174 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="precipitation_forecast_total",
|
key="precipitation_forecast_total",
|
||||||
name="Precipitation forecast total",
|
name="Precipitation forecast total",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
# new in json api (>1.0.0):
|
# new in json api (>1.0.0):
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="rainlast24hour",
|
key="rainlast24hour",
|
||||||
name="Rain last 24h",
|
name="Rain last 24h",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
# new in json api (>1.0.0):
|
# new in json api (>1.0.0):
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="rainlasthour",
|
key="rainlasthour",
|
||||||
name="Rain last hour",
|
name="Rain last hour",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="temperature_1d",
|
key="temperature_1d",
|
||||||
name="Temperature 1d",
|
name="Temperature 1d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="temperature_2d",
|
key="temperature_2d",
|
||||||
name="Temperature 2d",
|
name="Temperature 2d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="temperature_3d",
|
key="temperature_3d",
|
||||||
name="Temperature 3d",
|
name="Temperature 3d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="temperature_4d",
|
key="temperature_4d",
|
||||||
name="Temperature 4d",
|
name="Temperature 4d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="temperature_5d",
|
key="temperature_5d",
|
||||||
name="Temperature 5d",
|
name="Temperature 5d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="mintemp_1d",
|
key="mintemp_1d",
|
||||||
name="Minimum temperature 1d",
|
name="Minimum temperature 1d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="mintemp_2d",
|
key="mintemp_2d",
|
||||||
name="Minimum temperature 2d",
|
name="Minimum temperature 2d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="mintemp_3d",
|
key="mintemp_3d",
|
||||||
name="Minimum temperature 3d",
|
name="Minimum temperature 3d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="mintemp_4d",
|
key="mintemp_4d",
|
||||||
name="Minimum temperature 4d",
|
name="Minimum temperature 4d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="mintemp_5d",
|
key="mintemp_5d",
|
||||||
name="Minimum temperature 5d",
|
name="Minimum temperature 5d",
|
||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="rain_1d",
|
key="rain_1d",
|
||||||
name="Rain 1d",
|
name="Rain 1d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="rain_2d",
|
key="rain_2d",
|
||||||
name="Rain 2d",
|
name="Rain 2d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="rain_3d",
|
key="rain_3d",
|
||||||
name="Rain 3d",
|
name="Rain 3d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="rain_4d",
|
key="rain_4d",
|
||||||
name="Rain 4d",
|
name="Rain 4d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="rain_5d",
|
key="rain_5d",
|
||||||
name="Rain 5d",
|
name="Rain 5d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
# new in json api (>1.0.0):
|
# new in json api (>1.0.0):
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="minrain_1d",
|
key="minrain_1d",
|
||||||
name="Minimum rain 1d",
|
name="Minimum rain 1d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="minrain_2d",
|
key="minrain_2d",
|
||||||
name="Minimum rain 2d",
|
name="Minimum rain 2d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="minrain_3d",
|
key="minrain_3d",
|
||||||
name="Minimum rain 3d",
|
name="Minimum rain 3d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="minrain_4d",
|
key="minrain_4d",
|
||||||
name="Minimum rain 4d",
|
name="Minimum rain 4d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="minrain_5d",
|
key="minrain_5d",
|
||||||
name="Minimum rain 5d",
|
name="Minimum rain 5d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
# new in json api (>1.0.0):
|
# new in json api (>1.0.0):
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="maxrain_1d",
|
key="maxrain_1d",
|
||||||
name="Maximum rain 1d",
|
name="Maximum rain 1d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="maxrain_2d",
|
key="maxrain_2d",
|
||||||
name="Maximum rain 2d",
|
name="Maximum rain 2d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="maxrain_3d",
|
key="maxrain_3d",
|
||||||
name="Maximum rain 3d",
|
name="Maximum rain 3d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="maxrain_4d",
|
key="maxrain_4d",
|
||||||
name="Maximum rain 4d",
|
name="Maximum rain 4d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="maxrain_5d",
|
key="maxrain_5d",
|
||||||
name="Maximum rain 5d",
|
name="Maximum rain 5d",
|
||||||
native_unit_of_measurement=LENGTH_MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
icon="mdi:weather-pouring",
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="rainchance_1d",
|
key="rainchance_1d",
|
||||||
@ -465,37 +463,32 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="windspeed_1d",
|
key="windspeed_1d",
|
||||||
name="Wind speed 1d",
|
name="Wind speed 1d",
|
||||||
native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR,
|
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
device_class=SensorDeviceClass.SPEED,
|
device_class=SensorDeviceClass.WIND_SPEED,
|
||||||
icon="mdi:weather-windy",
|
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="windspeed_2d",
|
key="windspeed_2d",
|
||||||
name="Wind speed 2d",
|
name="Wind speed 2d",
|
||||||
native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR,
|
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
device_class=SensorDeviceClass.SPEED,
|
device_class=SensorDeviceClass.WIND_SPEED,
|
||||||
icon="mdi:weather-windy",
|
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="windspeed_3d",
|
key="windspeed_3d",
|
||||||
name="Wind speed 3d",
|
name="Wind speed 3d",
|
||||||
native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR,
|
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
device_class=SensorDeviceClass.SPEED,
|
device_class=SensorDeviceClass.WIND_SPEED,
|
||||||
icon="mdi:weather-windy",
|
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="windspeed_4d",
|
key="windspeed_4d",
|
||||||
name="Wind speed 4d",
|
name="Wind speed 4d",
|
||||||
native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR,
|
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
device_class=SensorDeviceClass.SPEED,
|
device_class=SensorDeviceClass.WIND_SPEED,
|
||||||
icon="mdi:weather-windy",
|
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="windspeed_5d",
|
key="windspeed_5d",
|
||||||
name="Wind speed 5d",
|
name="Wind speed 5d",
|
||||||
native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR,
|
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
device_class=SensorDeviceClass.SPEED,
|
device_class=SensorDeviceClass.WIND_SPEED,
|
||||||
icon="mdi:weather-windy",
|
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="winddirection_1d",
|
key="winddirection_1d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user