Use SensorDeviceClass.SPEED in metoffice (#79263)
This commit is contained in:
parent
21693b0022
commit
0fa0ab855b
1 changed files with 2 additions and 3 deletions
|
@ -83,15 +83,14 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
SensorEntityDescription(
|
||||
key="wind_speed",
|
||||
name="Wind speed",
|
||||
device_class=None,
|
||||
native_unit_of_measurement=SPEED_MILES_PER_HOUR,
|
||||
device_class=SensorDeviceClass.SPEED,
|
||||
icon="mdi:weather-windy",
|
||||
entity_registry_enabled_default=True,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="wind_direction",
|
||||
name="Wind direction",
|
||||
device_class=None,
|
||||
native_unit_of_measurement=None,
|
||||
icon="mdi:compass-outline",
|
||||
entity_registry_enabled_default=False,
|
||||
|
@ -99,8 +98,8 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
SensorEntityDescription(
|
||||
key="wind_gust",
|
||||
name="Wind gust",
|
||||
device_class=None,
|
||||
native_unit_of_measurement=SPEED_MILES_PER_HOUR,
|
||||
device_class=SensorDeviceClass.SPEED,
|
||||
icon="mdi:weather-windy",
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue