Add shorthand notation for Template conditions (#39705)

This commit is contained in:
Franck Nijhof 2020-09-06 16:55:06 +02:00 committed by GitHub
parent da9b077c11
commit a3c45a6f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 87 additions and 43 deletions

View file

@ -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",