SirGoodenough / HA_Blueprints

🧯 My Collection of Automation and Script Blueprints for Home Assistant 🧯
Other
132 stars 22 forks source link

[FR] Change empty input statements various #13

Closed SirGoodenough closed 1 year ago

SirGoodenough commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Find similar:

    - alias: Do something when the fan stop condition triggers
      if: '{{ not my_off_action in (''none'', ''null'', ''unavailable'', '''') }}'
      then: !input 'off_action'

and change to:

    - alias: Do something when the fan stop condition triggers
      if: "{{ my_off_action | default('') }}"
      then: !input 'off_action'
SirGoodenough commented 1 year ago

Updated in Nuggets branch

SirGoodenough commented 1 year ago

Doesn't work as expected. Killed it...