Skip to content

fix(docs): clear stale drone/operator map markers via availability gates#53

Merged
ifnull merged 1 commit into
mainfrom
fix/map-stale-markers
Jun 23, 2026
Merged

fix(docs): clear stale drone/operator map markers via availability gates#53
ifnull merged 1 commit into
mainfrom
fix/map-stale-markers

Conversation

@ifnull

@ifnull ifnull commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Drone and operator markers lingered on the HA Map long after a track was gone. The service clears tracks correctly (purge at expire_after_s -> nearest_drone topic empty-retained -> sensor unavailable), but a Map marker only disappears when its entity goes unavailable, and the example Airspace Drone Operator template sensor had no availability clause. Its state is operator_id or 'operator', which never evaluates falsy, so the sensor stayed available with stale/None coordinates and the operator pin persisted indefinitely.

Gate the operator sensor on the nearest drone being live and having a broadcast operator position, and tighten the aircraft/drone markers to also require a non-null latitude. Now markers clear when the service purges the track.

Drone and operator markers lingered on the HA Map long after a track was gone.
The service clears tracks correctly (purge at expire_after_s -> nearest_drone
topic empty-retained -> sensor unavailable), but a Map marker only disappears
when its entity goes unavailable, and the example `Airspace Drone Operator`
template sensor had no `availability` clause. Its state is `operator_id or
'operator'`, which never evaluates falsy, so the sensor stayed available with
stale/None coordinates and the operator pin persisted indefinitely.

Gate the operator sensor on the nearest drone being live and having a broadcast
operator position, and tighten the aircraft/drone markers to also require a
non-null latitude. Now markers clear when the service purges the track.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ifnull
ifnull merged commit ba037f6 into main Jun 23, 2026
@ifnull
ifnull deleted the fix/map-stale-markers branch June 26, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant