Code styling tweaks to the tests - Part 1 (#86192)
This commit is contained in:
parent
79b52a2b41
commit
24fdd588fd
50 changed files with 552 additions and 251 deletions
|
@ -163,9 +163,12 @@ async def test_if_fires_on_state_change(hass, calls):
|
|||
"service": "test.automation",
|
||||
"data_template": {
|
||||
"some": (
|
||||
"turn_on - {{ trigger.platform}} - "
|
||||
"{{ trigger.entity_id}} - {{ trigger.from_state.state}} - "
|
||||
"{{ trigger.to_state.state}} - {{ trigger.for }}"
|
||||
"turn_on "
|
||||
"- {{ trigger.platform }} "
|
||||
"- {{ trigger.entity_id }} "
|
||||
"- {{ trigger.from_state.state }} "
|
||||
"- {{ trigger.to_state.state }} "
|
||||
"- {{ trigger.for }}"
|
||||
)
|
||||
},
|
||||
},
|
||||
|
@ -182,9 +185,12 @@ async def test_if_fires_on_state_change(hass, calls):
|
|||
"service": "test.automation",
|
||||
"data_template": {
|
||||
"some": (
|
||||
"turn_off - {{ trigger.platform}} - "
|
||||
"{{ trigger.entity_id}} - {{ trigger.from_state.state}} - "
|
||||
"{{ trigger.to_state.state}} - {{ trigger.for }}"
|
||||
"turn_off "
|
||||
"- {{ trigger.platform }} "
|
||||
"- {{ trigger.entity_id }} "
|
||||
"- {{ trigger.from_state.state }} "
|
||||
"- {{ trigger.to_state.state }} "
|
||||
"- {{ trigger.for }}"
|
||||
)
|
||||
},
|
||||
},
|
||||
|
@ -201,9 +207,12 @@ async def test_if_fires_on_state_change(hass, calls):
|
|||
"service": "test.automation",
|
||||
"data_template": {
|
||||
"some": (
|
||||
"turn_on_or_off - {{ trigger.platform}} - "
|
||||
"{{ trigger.entity_id}} - {{ trigger.from_state.state}} - "
|
||||
"{{ trigger.to_state.state}} - {{ trigger.for }}"
|
||||
"turn_on_or_off "
|
||||
"- {{ trigger.platform }} "
|
||||
"- {{ trigger.entity_id }} "
|
||||
"- {{ trigger.from_state.state }} "
|
||||
"- {{ trigger.to_state.state }} "
|
||||
"- {{ trigger.for }}"
|
||||
)
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue