diff --git a/tests/components/cloud/test_http_api.py b/tests/components/cloud/test_http_api.py index a04729faf67..3d7e6a69e3c 100644 --- a/tests/components/cloud/test_http_api.py +++ b/tests/components/cloud/test_http_api.py @@ -1204,10 +1204,19 @@ async def test_list_alexa_entities( "interfaces": ["Alexa.PowerController", "Alexa.EndpointHealth", "Alexa"], } - # Add the entity to the entity registry - entity_registry.async_get_or_create( - "light", "test", "unique", suggested_object_id="kitchen" - ) + with patch( + ( + "homeassistant.components.cloud.alexa_config.CloudAlexaConfig" + ".async_get_access_token" + ), + ), patch( + "homeassistant.components.cloud.alexa_config.alexa_state_report.async_send_add_or_update_message" + ): + # Add the entity to the entity registry + entity_registry.async_get_or_create( + "light", "test", "unique", suggested_object_id="kitchen" + ) + await hass.async_block_till_done() with patch( "homeassistant.components.alexa.entities.async_get_entities",