Use SensorDeviceClass.CONDUCTIVITY for xiaomi_ble conductivity sensors (#127880)

This commit is contained in:
Erik Montnemery 2024-10-08 08:12:39 +02:00 committed by GitHub
parent b32c4a8fbb
commit fbd9502474
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,7 +48,7 @@ SENSOR_DESCRIPTIONS = {
),
(DeviceClass.CONDUCTIVITY, Units.CONDUCTIVITY): SensorEntityDescription(
key=str(Units.CONDUCTIVITY),
device_class=None,
device_class=SensorDeviceClass.CONDUCTIVITY,
native_unit_of_measurement=UnitOfConductivity.MICROSIEMENS,
state_class=SensorStateClass.MEASUREMENT,
),