|
10 | 10 | SensorStateClass)
|
11 | 11 | from homeassistant.const import (CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
|
12 | 12 | CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER,
|
13 |
| - CONCENTRATION_PARTS_PER_MILLION, CONDUCTIVITY, |
14 |
| - LIGHT_LUX, PERCENTAGE, |
| 13 | + CONCENTRATION_PARTS_PER_MILLION, LIGHT_LUX, |
| 14 | + PERCENTAGE, |
15 | 15 | SIGNAL_STRENGTH_DECIBELS_MILLIWATT, Platform,
|
16 |
| - UnitOfElectricPotential, UnitOfEnergy, |
17 |
| - UnitOfMass, UnitOfPower, UnitOfPressure, |
18 |
| - UnitOfTemperature, UnitOfVolume) |
| 16 | + UnitOfConductivity, UnitOfElectricPotential, |
| 17 | + UnitOfEnergy, UnitOfMass, UnitOfPower, |
| 18 | + UnitOfPressure, UnitOfTemperature, |
| 19 | + UnitOfVolume) |
19 | 20 | from homeassistant.helpers.entity import EntityCategory
|
20 | 21 |
|
21 | 22 | DOMAIN = "ble_monitor"
|
@@ -829,7 +830,7 @@ class BLEMonitorBinarySensorEntityDescription(
|
829 | 830 | name="ble conductivity",
|
830 | 831 | unique_id="c_",
|
831 | 832 | icon="mdi:lightning-bolt-circle",
|
832 |
| - native_unit_of_measurement=CONDUCTIVITY, |
| 833 | + native_unit_of_measurement=UnitOfConductivity.MICROSIEMENS, |
833 | 834 | device_class=None,
|
834 | 835 | suggested_display_precision=0,
|
835 | 836 | state_class=SensorStateClass.MEASUREMENT,
|
|
0 commit comments