You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The added filters of regex_search and regex_match are not jinja tests even though they return a boolean. This means they cannot be used in a select or selectattr expression even though it makes sense to do so. This is what you see if you try:
These should become jinja tests so they can be used in this way. For reference, Ansible added these same options to Jinja and they added them as tests (see here).
Environment
Home Assistant Core release with the issue: 2020.12.7
Last working Home Assistant Core release (if known):
Operating environment (OS/Container/Supervised/Core): Home Assistant OS 5.9
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
The added filters of
regex_search
andregex_match
are not jinja tests even though they return a boolean. This means they cannot be used in aselect
orselectattr
expression even though it makes sense to do so. This is what you see if you try:These should become jinja tests so they can be used in this way. For reference, Ansible added these same options to Jinja and they added them as tests (see here).
Environment
Problem-relevant
configuration.yaml
{{ states.binary_sensor | selectattr('entity_id', 'regex_search', '_update_available$') | list }}
Traceback/Error logs
Additional information
The text was updated successfully, but these errors were encountered: