Skip to content

Commit 303a0e9

Browse files
committed
fix conductivity warning
1 parent ea9868f commit 303a0e9

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

custom_components/ble_monitor/const.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
SensorStateClass)
1111
from homeassistant.const import (CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
1212
CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER,
13-
CONCENTRATION_PARTS_PER_MILLION, CONDUCTIVITY,
14-
LIGHT_LUX, PERCENTAGE,
13+
CONCENTRATION_PARTS_PER_MILLION, LIGHT_LUX,
14+
PERCENTAGE,
1515
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)
1920
from homeassistant.helpers.entity import EntityCategory
2021

2122
DOMAIN = "ble_monitor"
@@ -829,7 +830,7 @@ class BLEMonitorBinarySensorEntityDescription(
829830
name="ble conductivity",
830831
unique_id="c_",
831832
icon="mdi:lightning-bolt-circle",
832-
native_unit_of_measurement=CONDUCTIVITY,
833+
native_unit_of_measurement=UnitOfConductivity.MICROSIEMENS,
833834
device_class=None,
834835
suggested_display_precision=0,
835836
state_class=SensorStateClass.MEASUREMENT,

custom_components/ble_monitor/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"btsocket>=0.2.0",
1515
"pyric>=0.1.6.3"
1616
],
17-
"version": "12.12.1"
17+
"version": "12.12.2"
1818
}

0 commit comments

Comments
 (0)