Skip to content

Commit be45311

Browse files
authored
Merge pull request #1374 from custom-components/conductivity
fix conductivity warning
2 parents ea9868f + 7573ee3 commit be45311

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
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
}

hacs.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name": "Passive BLE monitor integration",
3-
"homeassistant": "2024.4.0"
3+
"homeassistant": "2024.7.0"
44
}

requirements_test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pytest-homeassistant-custom-component==0.13.133
1+
pytest-homeassistant-custom-component==0.13.145
22

33
# BLE montitor requirements
44
pycryptodomex==3.19.1

0 commit comments

Comments
 (0)