mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Update integrations f-i to override extra_state_attributes() (#47757)
This commit is contained in:
@ -455,9 +455,9 @@ class ISYBinarySensorHeartbeat(ISYNodeEntity, BinarySensorEntity):
|
||||
return DEVICE_CLASS_BATTERY
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Get the state attributes for the device."""
|
||||
attr = super().device_state_attributes
|
||||
attr = super().extra_state_attributes
|
||||
attr["parent_entity_id"] = self._parent_device.entity_id
|
||||
return attr
|
||||
|
||||
|
Reference in New Issue
Block a user