Skip to content

Commit

Permalink
Set state class as measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
simon511000 committed Oct 2, 2023
1 parent e78bff3 commit 7427320
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/meria/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ def unique_id(self):

@property
def device_class(self):
return DEVICE_CLASS_MONETARY
return SensorDeviceClass.MONETARY

@property
def state_class(self):
return SensorStateClass.MEASUREMENT

@property
def unit_of_measurement(self):
Expand Down

0 comments on commit 7427320

Please sign in to comment.