From f9d36fe493f3ac6a59f25866c1614788b1e4a122 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 29 Sep 2022 09:20:13 +0200 Subject: [PATCH] Use SensorDeviceClass.SPEED in rfxtrx (#79261) Use SensorDeviceClass.VOLUME in rfxtrx --- homeassistant/components/rfxtrx/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/rfxtrx/sensor.py b/homeassistant/components/rfxtrx/sensor.py index b4d4d65295c..563b166e0aa 100644 --- a/homeassistant/components/rfxtrx/sensor.py +++ b/homeassistant/components/rfxtrx/sensor.py @@ -206,12 +206,14 @@ SENSOR_TYPES = ( name="Wind average speed", state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=SPEED_METERS_PER_SECOND, + device_class=SensorDeviceClass.SPEED, ), RfxtrxSensorEntityDescription( key="Wind gust", name="Wind gust", state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=SPEED_METERS_PER_SECOND, + device_class=SensorDeviceClass.SPEED, ), RfxtrxSensorEntityDescription( key="Rain total",