1
mirror of https://github.com/home-assistant/core synced 2024-10-01 05:30:36 +02:00

Fix iCloud extra attributes (#48815)

This commit is contained in:
Niccolo Zapponi 2021-04-08 12:50:46 +01:00 committed by GitHub
parent 78dabc83ec
commit 9377a45d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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]:

View File

@ -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]: