Skip to content

Ignore Jinja context paths in dependencies - #22

Merged
ITSpecialist111 merged 2 commits into
mainfrom
fix/17-ignore-jinja-context-references
Jul 28, 2026
Merged

Ignore Jinja context paths in dependencies#22
ITSpecialist111 merged 2 commits into
mainfrom
fix/17-ignore-jinja-context-references

Conversation

@ITSpecialist111

Copy link
Copy Markdown
Owner

Fixes #17.

Stacked on #21.

Summary

  • stop broad entity regex extraction inside Jinja templates
  • keep literal Home Assistant template helper references like is_state('sensor.x', ...)
  • add regression coverage for trigger.entity_id and repeat.item.boolean

Validation

  • python -m ruff format --check .
  • python -m ruff check .
  • python -m pytest tests/test_references.py

@ITSpecialist111
ITSpecialist111 changed the base branch from fix/18-ignore-description-references to main July 28, 2026 07:08
@ITSpecialist111
ITSpecialist111 merged commit 4a25ca6 into main Jul 28, 2026
3 checks passed
@ITSpecialist111
ITSpecialist111 deleted the fix/17-ignore-jinja-context-references branch July 28, 2026 07:31
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.

False positive: Jinja context variables (trigger.entity_id, repeat.item) reported as missing entities

1 participant