mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +02:00
Guard OwnTracks writing state before hass available (#36680)
This commit is contained in:
committed by
Bram Kragten
parent
504cb26329
commit
9e73853d65
@@ -154,4 +154,5 @@ class OwnTracksEntity(TrackerEntity, RestoreEntity):
|
||||
def update_data(self, data):
|
||||
"""Mark the device as seen."""
|
||||
self._data = data
|
||||
self.async_write_ha_state()
|
||||
if self.hass:
|
||||
self.async_write_ha_state()
|
||||
|
Reference in New Issue
Block a user