1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +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

@@ -144,7 +144,7 @@ async def test_active_zone_skips_passive_zones_2(hass):
)
await hass.async_block_till_done()
active = zone.async_active_zone(hass, 32.880700, -117.237561)
assert "zone.active_zone" == active.entity_id
assert active.entity_id == "zone.active_zone"
async def test_active_zone_prefers_smaller_zone_if_same_distance(hass):
@@ -173,7 +173,7 @@ async def test_active_zone_prefers_smaller_zone_if_same_distance(hass):
)
active = zone.async_active_zone(hass, latitude, longitude)
assert "zone.small_zone" == active.entity_id
assert active.entity_id == "zone.small_zone"
async def test_active_zone_prefers_smaller_zone_if_same_distance_2(hass):
@@ -196,7 +196,7 @@ async def test_active_zone_prefers_smaller_zone_if_same_distance_2(hass):
)
active = zone.async_active_zone(hass, latitude, longitude)
assert "zone.smallest_zone" == active.entity_id
assert active.entity_id == "zone.smallest_zone"
async def test_in_zone_works_for_passive_zones(hass):