mirror of
https://github.com/home-assistant/core.git
synced 2025-09-02 09:01:05 +00:00
Move temperature conversions to sensor base class (5/8) (#54475)
This commit is contained in:
@@ -93,12 +93,12 @@ class PyLoadSensor(SensorEntity):
|
||||
return self._name
|
||||
|
||||
@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):
|
||||
"""Return the unit of measurement of this entity, if any."""
|
||||
return self._unit_of_measurement
|
||||
|
||||
|
Reference in New Issue
Block a user