Skip to content

Commit

Permalink
Merge pull request #1374 from custom-components/conductivity
Browse files Browse the repository at this point in the history
fix conductivity warning
  • Loading branch information
Ernst79 authored Jul 6, 2024
2 parents ea9868f + 7573ee3 commit be45311
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions custom_components/ble_monitor/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
SensorStateClass)
from homeassistant.const import (CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER,
CONCENTRATION_PARTS_PER_MILLION, CONDUCTIVITY,
LIGHT_LUX, PERCENTAGE,
CONCENTRATION_PARTS_PER_MILLION, LIGHT_LUX,
PERCENTAGE,
SIGNAL_STRENGTH_DECIBELS_MILLIWATT, Platform,
UnitOfElectricPotential, UnitOfEnergy,
UnitOfMass, UnitOfPower, UnitOfPressure,
UnitOfTemperature, UnitOfVolume)
UnitOfConductivity, UnitOfElectricPotential,
UnitOfEnergy, UnitOfMass, UnitOfPower,
UnitOfPressure, UnitOfTemperature,
UnitOfVolume)
from homeassistant.helpers.entity import EntityCategory

DOMAIN = "ble_monitor"
Expand Down Expand Up @@ -829,7 +830,7 @@ class BLEMonitorBinarySensorEntityDescription(
name="ble conductivity",
unique_id="c_",
icon="mdi:lightning-bolt-circle",
native_unit_of_measurement=CONDUCTIVITY,
native_unit_of_measurement=UnitOfConductivity.MICROSIEMENS,
device_class=None,
suggested_display_precision=0,
state_class=SensorStateClass.MEASUREMENT,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ble_monitor/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"btsocket>=0.2.0",
"pyric>=0.1.6.3"
],
"version": "12.12.1"
"version": "12.12.2"
}
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Passive BLE monitor integration",
"homeassistant": "2024.4.0"
"homeassistant": "2024.7.0"
}
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest-homeassistant-custom-component==0.13.133
pytest-homeassistant-custom-component==0.13.145

# BLE montitor requirements
pycryptodomex==3.19.1
Expand Down

0 comments on commit be45311

Please sign in to comment.