mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Migrate Life360 to has entity name (#98796)
This commit is contained in:
parent
b03ffe6a6a
commit
d7adc2621d
@ -100,6 +100,8 @@ class Life360DeviceTracker(
|
|||||||
|
|
||||||
_attr_attribution = ATTRIBUTION
|
_attr_attribution = ATTRIBUTION
|
||||||
_attr_unique_id: str
|
_attr_unique_id: str
|
||||||
|
_attr_has_entity_name = True
|
||||||
|
_attr_name = None
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, coordinator: Life360DataUpdateCoordinator, member_id: str
|
self, coordinator: Life360DataUpdateCoordinator, member_id: str
|
||||||
@ -111,7 +113,6 @@ class Life360DeviceTracker(
|
|||||||
self._data: Life360Member | None = coordinator.data.members[member_id]
|
self._data: Life360Member | None = coordinator.data.members[member_id]
|
||||||
self._prev_data = self._data
|
self._prev_data = self._data
|
||||||
|
|
||||||
self._attr_name = self._data.name
|
|
||||||
self._name = self._data.name
|
self._name = self._data.name
|
||||||
self._attr_entity_picture = self._data.entity_picture
|
self._attr_entity_picture = self._data.entity_picture
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user