mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Prevent 3rd party lib from opening sockets in cloud tests (#56328)
This commit is contained in:
parent
e0a232aa36
commit
327bf24940
@ -133,7 +133,9 @@ async def test_google_entity_registry_sync(hass, mock_cloud_login, cloud_prefs):
|
|||||||
|
|
||||||
with patch.object(
|
with patch.object(
|
||||||
config, "async_schedule_google_sync_all"
|
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
|
# Created entity
|
||||||
hass.bus.async_fire(
|
hass.bus.async_fire(
|
||||||
EVENT_ENTITY_REGISTRY_UPDATED,
|
EVENT_ENTITY_REGISTRY_UPDATED,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user