1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 04:19:34 +00:00

Make zone dependency of device tracker an after dep (#32880)

* Make zone dependency of device tracker an after dep

* Fix test
This commit is contained in:
Paulus Schoutsen
2020-03-17 03:59:39 -07:00
committed by GitHub
parent 86d48c608e
commit abd1909e2b
5 changed files with 35 additions and 33 deletions

View File

@@ -160,8 +160,10 @@ async def test_webhook_handle_get_zones(hass, create_registrations, webhook_clie
assert resp.status == 200
json = await resp.json()
assert len(json) == 1
assert json[0]["entity_id"] == "zone.home"
assert len(json) == 2
zones = sorted(json, key=lambda entry: entry["entity_id"])
assert zones[0]["entity_id"] == "zone.home"
assert zones[1]["entity_id"] == "zone.test"
async def test_webhook_handle_get_config(hass, create_registrations, webhook_client):