mirror of
https://github.com/home-assistant/core.git
synced 2026-08-13 16:53:18 +01:00
Migrate calls to async_get_device in mobile_app tests (#178370)
This commit is contained in:
@@ -1098,7 +1098,9 @@ async def test_webhook_handle_scan_tag(
|
||||
webhook_client: TestClient,
|
||||
) -> None:
|
||||
"""Test that we can scan tags."""
|
||||
device = device_registry.async_get_device(identifiers={(DOMAIN, "mock-device-id")})
|
||||
[device] = device_registry.async_get_devices(
|
||||
identifiers={(DOMAIN, "mock-device-id")}
|
||||
)
|
||||
assert device is not None
|
||||
|
||||
events = async_capture_events(hass, EVENT_TAG_SCANNED)
|
||||
|
||||
Reference in New Issue
Block a user