Skip to content

Commit

Permalink
Add issue template info
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboMagus committed Mar 2, 2024
1 parent ee6bb92 commit 55301ee
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions source/_docs/configuration/templating.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,25 @@ The same thing can also be expressed as a test:

{% endraw %}

### Issues

- `issues()` returns all open issues as a mapping of (domain, issue_id) tuples to the issue object.
- `issue(domain, issue_id)` returns a specific issue for the provided domain and issue_id.

#### Issues examples

{% raw %}

```text
{{ issues() }} # { ("homeassistant", "deprecated_yaml_ping"): {...}, ("cloud", "legacy_subscription"): {...} }
```

```text
{{ issue('homeassistant', 'python_version') }} # {"breaks_in_ha_version": "2024.4", "domain": "homeassistant", "issue_id": "python_version", "is_persistent": False, ...}
```

{% endraw %}

### Immediate if (iif)

A common case is to conditionally return a value based on another value.
Expand Down

0 comments on commit 55301ee

Please sign in to comment.