From 327bf24940e2fcfb14372b126ea2b93eb6569ed9 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 17 Sep 2021 12:50:59 +0200 Subject: [PATCH] Prevent 3rd party lib from opening sockets in cloud tests (#56328) --- tests/components/cloud/test_google_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/cloud/test_google_config.py b/tests/components/cloud/test_google_config.py index f2528de221d..a80ccaccd6c 100644 --- a/tests/components/cloud/test_google_config.py +++ b/tests/components/cloud/test_google_config.py @@ -133,7 +133,9 @@ async def test_google_entity_registry_sync(hass, mock_cloud_login, cloud_prefs): with patch.object( config, "async_schedule_google_sync_all" - ) as mock_sync, patch.object(ga_helpers, "SYNC_DELAY", 0): + ) as mock_sync, patch.object(config, "async_sync_entities_all"), patch.object( + ga_helpers, "SYNC_DELAY", 0 + ): # Created entity hass.bus.async_fire( EVENT_ENTITY_REGISTRY_UPDATED,