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

Use DeviceEntryType in non-typechecked code too (#58646)

This commit is contained in:
Ville Skyttä
2021-11-23 11:04:33 +02:00
committed by GitHub
parent ca20fc857f
commit 39691faccc
24 changed files with 50 additions and 31 deletions

View File

@@ -36,7 +36,7 @@ async def test_list_devices(hass, client, registry):
manufacturer="manufacturer",
model="model",
via_device=("bridgeid", "0123"),
entry_type="service",
entry_type=helpers_dr.DeviceEntryType.SERVICE,
)
await client.send_json({"id": 5, "type": "config/device_registry/list"})
@@ -68,7 +68,7 @@ async def test_list_devices(hass, client, registry):
"model": "model",
"name": None,
"sw_version": None,
"entry_type": "service",
"entry_type": helpers_dr.DeviceEntryType.SERVICE,
"via_device_id": dev1,
"area_id": None,
"name_by_user": None,