Skip to content

Commit

Permalink
Do not add restored attribute when restored
Browse files Browse the repository at this point in the history
The restored attribute has undesired side effects.
  • Loading branch information
pnbruckner committed Jan 20, 2024
1 parent 7661df7 commit f5f8e29
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/composite/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
ATTR_GPS_ACCURACY,
ATTR_LATITUDE,
ATTR_LONGITUDE,
ATTR_RESTORED,
CONF_ENTITY_ID,
CONF_ID,
CONF_NAME,
Expand Down Expand Up @@ -382,7 +381,6 @@ async def _restore_state(self) -> None:
self.latitude is None or self.longitude is None
):
self._location_name = last_state.state
self._attr_extra_state_attributes[ATTR_RESTORED] = True

def _clear_state(self) -> None:
"""Clear state."""
Expand Down

0 comments on commit f5f8e29

Please sign in to comment.