From b4ec6e4c98697543cc0b7355ad6f99d05cb4877a Mon Sep 17 00:00:00 2001 From: fire Date: Sat, 7 Oct 2023 22:28:31 +0200 Subject: [PATCH] fixes #99 External_Device_Load fixes Issue #99 KeyError: (, --- custom_components/victron_ble/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/victron_ble/sensor.py b/custom_components/victron_ble/sensor.py index f680cf8..fe413d3 100644 --- a/custom_components/victron_ble/sensor.py +++ b/custom_components/victron_ble/sensor.py @@ -90,7 +90,7 @@ device_class=SensorDeviceClass.ENUM, options=[x.lower() for x in ChargerError._member_names_], ), - (VictronSensor.EXTERNAL_DEVICE_LOAD, None): SensorEntityDescription( + (VictronSensor.EXTERNAL_DEVICE_LOAD, Units.ELECTRIC_CURRENT_AMPERE): SensorEntityDescription( key=VictronSensor.EXTERNAL_DEVICE_LOAD, device_class=SensorDeviceClass.CURRENT, native_unit_of_measurement=Units.ELECTRIC_CURRENT_AMPERE,