mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Guard OwnTracks writing state before hass available (#36680)
This commit is contained in:
parent
e8b16f0dfd
commit
3c57475c8f
@ -154,4 +154,5 @@ class OwnTracksEntity(TrackerEntity, RestoreEntity):
|
||||
def update_data(self, data):
|
||||
"""Mark the device as seen."""
|
||||
self._data = data
|
||||
if self.hass:
|
||||
self.async_write_ha_state()
|
||||
|
Loading…
x
Reference in New Issue
Block a user