Skip to content

Commit

Permalink
Update meter_reading_sensor.py
Browse files Browse the repository at this point in the history
Fix Uppercase type in def device_class
  • Loading branch information
joost471 authored Dec 19, 2023
1 parent 6fc6cee commit 254d135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/energy_id/meter_reading_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 254d135

Please sign in to comment.