From 73e48d2096c4fb2b00a9cde5793867f93bb9d1ef Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 8 Aug 2026 15:43:07 +0200 Subject: [PATCH] Migrate calls to async_get_device in mobile_app tests (#178370) --- tests/components/mobile_app/test_webhook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/mobile_app/test_webhook.py b/tests/components/mobile_app/test_webhook.py index 5fbf501cb839..3c1ec10c93e1 100644 --- a/tests/components/mobile_app/test_webhook.py +++ b/tests/components/mobile_app/test_webhook.py @@ -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)