Update integrations j-o to override extra_state_attributes() (#47758)
This commit is contained in:
parent
1095905f8c
commit
14a59d290a
110 changed files with 150 additions and 150 deletions
|
@ -38,7 +38,7 @@ class KNXBinarySensor(KnxEntity, BinarySensorEntity):
|
|||
return self._device.is_on()
|
||||
|
||||
@property
|
||||
def device_state_attributes(self) -> Optional[Dict[str, Any]]:
|
||||
def extra_state_attributes(self) -> Optional[Dict[str, Any]]:
|
||||
"""Return device specific state attributes."""
|
||||
if self._device.counter is not None:
|
||||
return {ATTR_COUNTER: self._device.counter}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue