diff --git a/homeassistant/components/bthome/manifest.json b/homeassistant/components/bthome/manifest.json index 01db154306f..a7729cc256e 100644 --- a/homeassistant/components/bthome/manifest.json +++ b/homeassistant/components/bthome/manifest.json @@ -20,5 +20,5 @@ "dependencies": ["bluetooth_adapters"], "documentation": "https://www.home-assistant.io/integrations/bthome", "iot_class": "local_push", - "requirements": ["bthome-ble==3.1.1"] + "requirements": ["bthome-ble==3.2.0"] } diff --git a/homeassistant/components/bthome/sensor.py b/homeassistant/components/bthome/sensor.py index 06f205246c8..10ba292d20c 100644 --- a/homeassistant/components/bthome/sensor.py +++ b/homeassistant/components/bthome/sensor.py @@ -228,6 +228,10 @@ SENSOR_DESCRIPTIONS = { native_unit_of_measurement=UnitOfPressure.MBAR, state_class=SensorStateClass.MEASUREMENT, ), + # Raw (-) + (BTHomeExtendedSensorDeviceClass.RAW, None): SensorEntityDescription( + key=str(BTHomeExtendedSensorDeviceClass.RAW), + ), # Rotation (°) (BTHomeSensorDeviceClass.ROTATION, Units.DEGREE): SensorEntityDescription( key=f"{BTHomeSensorDeviceClass.ROTATION}_{Units.DEGREE}", diff --git a/requirements_all.txt b/requirements_all.txt index 3bd419d787a..c4a0d14dae7 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -581,7 +581,7 @@ brunt==1.2.0 bt-proximity==0.2.1 # homeassistant.components.bthome -bthome-ble==3.1.1 +bthome-ble==3.2.0 # homeassistant.components.bt_home_hub_5 bthomehub5-devicelist==0.1.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index b4f7123377f..30dcc0ba712 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -488,7 +488,7 @@ brottsplatskartan==0.0.1 brunt==1.2.0 # homeassistant.components.bthome -bthome-ble==3.1.1 +bthome-ble==3.2.0 # homeassistant.components.buienradar buienradar==1.0.5 diff --git a/tests/components/bthome/test_sensor.py b/tests/components/bthome/test_sensor.py index 831f7811972..c1f8e26ccb2 100644 --- a/tests/components/bthome/test_sensor.py +++ b/tests/components/bthome/test_sensor.py @@ -957,6 +957,21 @@ async def test_v1_sensors( }, ], ), + ( + "A4:C1:38:8D:18:B2", + make_bthome_v2_adv( + "A4:C1:38:8D:18:B2", + b"\x44\x54\x0C\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64\x21", + ), + None, + [ + { + "sensor_entity": "sensor.test_device_18b2_raw", + "friendly_name": "Test Device 18B2 Raw", + "expected_state": "48656c6c6f20576f726c6421", + }, + ], + ), ( "A4:C1:38:8D:18:B2", make_bthome_v2_adv(