Replaced device_state_attributes for extra_state_attributes, fixes #152

This commit is contained in:
tomaae 2021-12-13 10:59:36 +01:00
parent 572ce4eebe
commit e10ab3e0ee
4 changed files with 10 additions and 10 deletions

View file

@ -225,7 +225,7 @@ class MikrotikControllerDeviceTracker(ScannerEntity):
return info
@property
def device_state_attributes(self) -> Dict[str, Any]:
def extra_state_attributes(self) -> Dict[str, Any]:
"""Return the state attributes."""
attributes = self._attrs
return attributes
@ -301,7 +301,7 @@ class MikrotikControllerHostDeviceTracker(MikrotikControllerDeviceTracker):
return "mdi:lan-disconnect"
@property
def device_state_attributes(self) -> Dict[str, Any]:
def extra_state_attributes(self) -> Dict[str, Any]:
"""Return the state attributes."""
attributes = self._attrs
for variable in DEVICE_ATTRIBUTES_HOST: