Bump bthome-ble to 3.4.1 (#107757)

pull/107765/head
Ernst Klamer 2024-01-11 01:48:37 +01:00 committed by GitHub
parent b5bd910963
commit 0ae86095d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 3 deletions

View File

@ -20,5 +20,5 @@
"dependencies": ["bluetooth_adapters"],
"documentation": "https://www.home-assistant.io/integrations/bthome",
"iot_class": "local_push",
"requirements": ["bthome-ble==3.3.1"]
"requirements": ["bthome-ble==3.4.1"]
}

View File

@ -337,6 +337,16 @@ SENSOR_DESCRIPTIONS = {
native_unit_of_measurement=UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
state_class=SensorStateClass.MEASUREMENT,
),
# Volume Storage (L)
(
BTHomeExtendedSensorDeviceClass.VOLUME_STORAGE,
Units.VOLUME_LITERS,
): SensorEntityDescription(
key=f"{BTHomeExtendedSensorDeviceClass.VOLUME_STORAGE}_{Units.VOLUME_LITERS}",
device_class=SensorDeviceClass.VOLUME_STORAGE,
native_unit_of_measurement=UnitOfVolume.LITERS,
state_class=SensorStateClass.MEASUREMENT,
),
# Water (L)
(
BTHomeSensorDeviceClass.WATER,

View File

@ -603,7 +603,7 @@ brunt==1.2.0
bt-proximity==0.2.1
# homeassistant.components.bthome
bthome-ble==3.3.1
bthome-ble==3.4.1
# homeassistant.components.bt_home_hub_5
bthomehub5-devicelist==0.1.1

View File

@ -508,7 +508,7 @@ brottsplatskartan==1.0.5
brunt==1.2.0
# homeassistant.components.bthome
bthome-ble==3.3.1
bthome-ble==3.4.1
# homeassistant.components.buienradar
buienradar==1.0.5

View File

@ -972,6 +972,23 @@ async def test_v1_sensors(
},
],
),
(
"A4:C1:38:8D:18:B2",
make_bthome_v2_adv(
"A4:C1:38:8D:18:B2",
b"\x40\x55\x87\x56\x2a\x01",
),
None,
[
{
"sensor_entity": "sensor.test_device_18b2_volume_storage",
"friendly_name": "Test Device 18B2 Volume Storage",
"unit_of_measurement": "L",
"state_class": "measurement",
"expected_state": "19551.879",
},
],
),
(
"A4:C1:38:8D:18:B2",
make_bthome_v2_adv(