diff --git a/custom_components/daikin_residential/sensor.py b/custom_components/daikin_residential/sensor.py index beae5ae..f4ad90e 100644 --- a/custom_components/daikin_residential/sensor.py +++ b/custom_components/daikin_residential/sensor.py @@ -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.""" @@ -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.""" @@ -162,4 +162,4 @@ def state(self): @property def state_class(self): - return STATE_CLASS_TOTAL_INCREASING \ No newline at end of file + return STATE_CLASS_TOTAL_INCREASING