Move temperature conversions to sensor base class (4/8) (#54472)
* Move temperature conversions to entity base class (4/8) * Fix litterrobot sensor * Fix tests
This commit is contained in:
parent
ae507aeed1
commit
2720ba2753
70 changed files with 195 additions and 183 deletions
|
@ -104,12 +104,12 @@ class KebaSensor(SensorEntity):
|
|||
return self._icon
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
def native_value(self):
|
||||
"""Return the state of the sensor."""
|
||||
return self._state
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
def native_unit_of_measurement(self):
|
||||
"""Get the unit of measurement."""
|
||||
return self._unit
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue