mirror of
https://github.com/home-assistant/core.git
synced 2025-09-27 13:59:29 +00:00
Update integrations p-s to override extra_state_attributes() (#47759)
This commit is contained in:
@@ -74,7 +74,7 @@ class RandomSensor(Entity):
|
||||
return self._unit_of_measurement
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the attributes of the sensor."""
|
||||
return {ATTR_MAXIMUM: self._maximum, ATTR_MINIMUM: self._minimum}
|
||||
|
||||
|
Reference in New Issue
Block a user