Skip to content

Fix activity log entity scoping - #15

Merged
iTerminate merged 2 commits into
mainfrom
improvements
Jul 28, 2026
Merged

Fix activity log entity scoping#15
iTerminate merged 2 commits into
mainfrom
improvements

Conversation

@iTerminate

Copy link
Copy Markdown
Owner

Summary

Test plan

  • uv run pytest — full suite (1099 passed)
  • uv run ruff check .
  • uv run pyright
  • New unit tests pin the entity query param in fetch_logbook
  • New acceptance tests cover graph-scoped a/A/i (single entity, comparison lines, device expansion)

Closes #13, Closes #14

HA's logbook REST endpoint reads `entity`, not `entity_id`; the latter was
silently ignored, so every log query returned the whole instance.
Refs #13
a/A/i used to close the inline graph panel and fall back to the current
list/table selection, losing the entity actually being viewed.
Refs #14
@iTerminate
iTerminate merged commit feb87dd into main Jul 28, 2026
1 check passed
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.

🐛 Opening the activity log from a graph loses the graphed entity's scope 🐛 Activity log ignores its entity filter (wrong HA query param)

1 participant