Skip to content

Commit

Permalink
reject undefined instead of select defined
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhanifin committed Oct 4, 2023
1 parent b2f3070 commit 9137b7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ attributes:
entities: |
{{
states.sensor
| selectattr("attributes.device_class","defined")
| rejectattr("attributes.device_class","undefined")
| selectattr("attributes.device_class","eq","battery")
| selectattr("state","lt","100")
| selectattr("state","lt","40")
Expand Down

0 comments on commit 9137b7c

Please sign in to comment.