mirror of
https://github.com/home-assistant/core.git
synced 2025-05-01 20:57:51 +00:00
Fix iCloud extra attributes (#48815)
This commit is contained in:
parent
78dabc83ec
commit
9377a45d8a
@ -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…
x
Reference in New Issue
Block a user