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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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):