Skip to content

Commit

Permalink
Merge pull request #18 from joost471/patch-1
Browse files Browse the repository at this point in the history
Update meter_reading_sensor.py
  • Loading branch information
tijsverkoyen authored Dec 22, 2023
2 parents 6fc6cee + 254d135 commit fcdcdd6
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 fcdcdd6

Please sign in to comment.