Add shorthand notation for Template conditions (#39705)
This commit is contained in:
parent
da9b077c11
commit
a3c45a6f89
6 changed files with 87 additions and 43 deletions
|
@ -128,10 +128,7 @@ async def test_or_condition_with_template(hass):
|
|||
{
|
||||
"condition": "or",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "template",
|
||||
"value_template": '{{ states.sensor.temperature.state == "100" }}',
|
||||
},
|
||||
{'{{ states.sensor.temperature.state == "100" }}'},
|
||||
{
|
||||
"condition": "numeric_state",
|
||||
"entity_id": "sensor.temperature",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue