Skip to content

Commit

Permalink
Introduced LTS support for Energy sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
rospogrigio committed Jan 25, 2022
1 parent 61ad7b7 commit be641ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/daikin_residential/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def state(self):
"""Return the state of the sensor."""
raise NotImplementedError


@property
def device_class(self):
"""Return the class of this device."""
Expand Down Expand Up @@ -148,6 +147,7 @@ def state(self):
def state_class(self):
return STATE_CLASS_MEASUREMENT


class DaikinEnergySensor(DaikinSensor):
"""Representation of a power/energy consumption sensor."""

Expand All @@ -162,4 +162,4 @@ def state(self):

@property
def state_class(self):
return STATE_CLASS_TOTAL_INCREASING
return STATE_CLASS_TOTAL_INCREASING

0 comments on commit be641ee

Please sign in to comment.