1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Yoda assertion style removed is (#48142)

This commit is contained in:
Franck Nijhof
2021-03-20 13:55:10 +01:00
committed by GitHub
parent 365e8a74ee
commit 5a2b5fe7c5
75 changed files with 1137 additions and 1148 deletions

View File

@@ -395,7 +395,7 @@ async def test_if_fires_on_change_with_template_advanced(hass, calls):
await hass.async_block_till_done()
assert len(calls) == 1
assert calls[0].context.parent_id == context.id
assert "template - test.entity - hello - world - None" == calls[0].data["some"]
assert calls[0].data["some"] == "template - test.entity - hello - world - None"
async def test_if_fires_on_no_change_with_template_advanced(hass, calls):
@@ -657,7 +657,7 @@ async def test_if_fires_on_change_with_for_advanced(hass, calls):
await hass.async_block_till_done()
assert len(calls) == 1
assert calls[0].context.parent_id == context.id
assert "template - test.entity - hello - world - 0:00:05" == calls[0].data["some"]
assert calls[0].data["some"] == "template - test.entity - hello - world - 0:00:05"
async def test_if_fires_on_change_with_for_0(hass, calls):