Use SensorDeviceClass.SPEED in rfxtrx (#79261)

Use SensorDeviceClass.VOLUME in rfxtrx
pull/79642/head
epenet 2022-09-29 09:20:13 +02:00 committed by Paulus Schoutsen
parent ddd981d4fe
commit d552056c17
1 changed files with 2 additions and 0 deletions

View File

@ -206,12 +206,14 @@ SENSOR_TYPES = (
name="Wind average speed", name="Wind average speed",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=SPEED_METERS_PER_SECOND, native_unit_of_measurement=SPEED_METERS_PER_SECOND,
device_class=SensorDeviceClass.SPEED,
), ),
RfxtrxSensorEntityDescription( RfxtrxSensorEntityDescription(
key="Wind gust", key="Wind gust",
name="Wind gust", name="Wind gust",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=SPEED_METERS_PER_SECOND, native_unit_of_measurement=SPEED_METERS_PER_SECOND,
device_class=SensorDeviceClass.SPEED,
), ),
RfxtrxSensorEntityDescription( RfxtrxSensorEntityDescription(
key="Rain total", key="Rain total",