From 1ee7788c0c176fbced11a8263a2b39a16b9f51ad Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Wed, 12 Jun 2024 16:51:58 -0700 Subject: [PATCH] Fix compatibility with HA 2024.6. The integration failed to load due to changes in the type signature of PassiveBluetoothProcessor. Added Smart Lithium and Smart Protect devices. Fixed an issue with meter type and temperature reporting in DC Energy Meters. --- custom_components/victron_ble/manifest.json | 4 ++-- custom_components/victron_ble/sensor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/victron_ble/manifest.json b/custom_components/victron_ble/manifest.json index 519aee5..e17b6a5 100644 --- a/custom_components/victron_ble/manifest.json +++ b/custom_components/victron_ble/manifest.json @@ -14,6 +14,6 @@ "integration_type": "device", "iot_class": "local_push", "issue_tracker": "https://github.com/keshavdv/victron-hacs/issues", - "requirements": ["git+https://github.com/j9brown/victron-ble.git@main#victron_ble==0.8.1"], - "version": "0.1.10" + "requirements": ["git+https://github.com/j9brown/victron-ble.git@main#victron_ble==0.8.2"], + "version": "0.1.11" } diff --git a/custom_components/victron_ble/sensor.py b/custom_components/victron_ble/sensor.py index 2d51e27..4fa3316 100644 --- a/custom_components/victron_ble/sensor.py +++ b/custom_components/victron_ble/sensor.py @@ -281,7 +281,7 @@ async def async_setup_entry( class VictronBluetoothSensorEntity( PassiveBluetoothProcessorEntity[ - PassiveBluetoothDataProcessor[Optional[Union[float, int]]] + PassiveBluetoothDataProcessor[float | int | None, SensorUpdate], ], SensorEntity, ):