From 254d13506c513f7bd1b24a2eb42ae1c7178d2da0 Mon Sep 17 00:00:00 2001 From: joost471 <78314792+joost471@users.noreply.github.com> Date: Tue, 19 Dec 2023 18:11:50 +0100 Subject: [PATCH] Update meter_reading_sensor.py Fix Uppercase type in def device_class --- custom_components/energy_id/meter_reading_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/energy_id/meter_reading_sensor.py b/custom_components/energy_id/meter_reading_sensor.py index ed2f412..f8c54e6 100644 --- a/custom_components/energy_id/meter_reading_sensor.py +++ b/custom_components/energy_id/meter_reading_sensor.py @@ -49,7 +49,7 @@ def device_class(self) -> str: return SensorDeviceClass.GAS if self._meter.unit.lower() in ["l"]: return SensorDeviceClass.VOLUME - if self._meter.unit.lower() in ["kWh"]: + if self._meter.unit.lower() in ["kwh"]: return SensorDeviceClass.ENERGY if self._meter.metric.lower() in ["pelletsstockdraw", "woodbriquettesstockdraw", "firewoodstockdraw"]: