Code styling tweaks to the tests - Part 1 (#86192)

This commit is contained in:
Franck Nijhof 2023-01-20 13:52:46 +01:00 committed by GitHub
parent 79b52a2b41
commit 24fdd588fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 552 additions and 251 deletions

View file

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