Move temperature conversions to sensor base class - new integrations (#54623)
* Move temperature conversions to sensor base class * Tweaks * Update pvpc_hourly_pricing * Fix flipr sensor * Fix ezviz and youless sensor
This commit is contained in:
parent
a9807e5fa7
commit
87e7a8fb5f
17 changed files with 60 additions and 58 deletions
|
@ -280,7 +280,7 @@ class XiaomiGenericSensor(XiaomiCoordinatedMiioEntity, SensorEntity):
|
|||
self.entity_description = description
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
def native_value(self):
|
||||
"""Return the state of the device."""
|
||||
self._state = self._extract_value_from_attribute(
|
||||
self.coordinator.data, self.entity_description.key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue