diff --git a/homeassistant/components/metoffice/sensor.py b/homeassistant/components/metoffice/sensor.py index dd8ceefad230bca6dad2b889e58f7377401fe433..c553904a89526c65eae5151421ae1b8320e0d964 100644 --- a/homeassistant/components/metoffice/sensor.py +++ b/homeassistant/components/metoffice/sensor.py @@ -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, ),