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
|
return self._location
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def exta_state_attributes(self) -> dict[str, any]:
|
def extra_state_attributes(self) -> dict[str, any]:
|
||||||
"""Return the attributes."""
|
"""Return the attributes."""
|
||||||
return self._attrs
|
return self._attrs
|
||||||
|
|
|
@ -110,7 +110,7 @@ class IcloudTrackerEntity(TrackerEntity):
|
||||||
@property
|
@property
|
||||||
def extra_state_attributes(self) -> dict[str, any]:
|
def extra_state_attributes(self) -> dict[str, any]:
|
||||||
"""Return the device state attributes."""
|
"""Return the device state attributes."""
|
||||||
return self._device.state_attributes
|
return self._device.extra_state_attributes
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_info(self) -> dict[str, any]:
|
def device_info(self) -> dict[str, any]:
|
||||||
|
|
|
@ -93,7 +93,7 @@ class IcloudDeviceBatterySensor(SensorEntity):
|
||||||
@property
|
@property
|
||||||
def extra_state_attributes(self) -> dict[str, any]:
|
def extra_state_attributes(self) -> dict[str, any]:
|
||||||
"""Return default attributes for the iCloud device entity."""
|
"""Return default attributes for the iCloud device entity."""
|
||||||
return self._device.state_attributes
|
return self._device.extra_state_attributes
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_info(self) -> dict[str, any]:
|
def device_info(self) -> dict[str, any]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue