From 43aaf78f7bd3f77f2f1f5153fd182501a307e40e Mon Sep 17 00:00:00 2001 From: dupondje Date: Wed, 18 Oct 2023 14:05:16 +0200 Subject: [PATCH] Fix DSMR max current device class (#102219) Max current is CURRENT Device Class The max current is shown as Amps. So need to change the device class to CURRENT instead of POWER. --- homeassistant/components/dsmr/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/dsmr/sensor.py b/homeassistant/components/dsmr/sensor.py index e4f9d0e9ab9..5bd5138a7d6 100644 --- a/homeassistant/components/dsmr/sensor.py +++ b/homeassistant/components/dsmr/sensor.py @@ -325,7 +325,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = ( translation_key="max_current_per_phase", obis_reference=obis_references.BELGIUM_MAX_CURRENT_PER_PHASE, dsmr_versions={"5B"}, - device_class=SensorDeviceClass.POWER, + device_class=SensorDeviceClass.CURRENT, entity_registry_enabled_default=False, state_class=SensorStateClass.MEASUREMENT, entity_category=EntityCategory.DIAGNOSTIC,