Use device_state_attributes (#5518)
This commit is contained in:
parent
9bc9e7fbc4
commit
d5119a0520
3 changed files with 4 additions and 4 deletions
|
@ -110,7 +110,7 @@ class ThresholdSensor(BinarySensorDevice):
|
|||
return self._sensor_class
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
def device_state_attributes(self):
|
||||
"""Return the state attributes of the sensor."""
|
||||
return {
|
||||
ATTR_ENTITY_ID: self._entity_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue