Fix iCloud extra attributes (#48815)
This commit is contained in:
parent
78dabc83ec
commit
9377a45d8a
3 changed files with 3 additions and 3 deletions
|
@ -501,6 +501,6 @@ class IcloudDevice:
|
|||
return self._location
|
||||
|
||||
@property
|
||||
def exta_state_attributes(self) -> dict[str, any]:
|
||||
def extra_state_attributes(self) -> dict[str, any]:
|
||||
"""Return the attributes."""
|
||||
return self._attrs
|
||||
|
|
|
@ -110,7 +110,7 @@ class IcloudTrackerEntity(TrackerEntity):
|
|||
@property
|
||||
def extra_state_attributes(self) -> dict[str, any]:
|
||||
"""Return the device state attributes."""
|
||||
return self._device.state_attributes
|
||||
return self._device.extra_state_attributes
|
||||
|
||||
@property
|
||||
def device_info(self) -> dict[str, any]:
|
||||
|
|
|
@ -93,7 +93,7 @@ class IcloudDeviceBatterySensor(SensorEntity):
|
|||
@property
|
||||
def extra_state_attributes(self) -> dict[str, any]:
|
||||
"""Return default attributes for the iCloud device entity."""
|
||||
return self._device.state_attributes
|
||||
return self._device.extra_state_attributes
|
||||
|
||||
@property
|
||||
def device_info(self) -> dict[str, any]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue