diff --git a/tests/components/cookidoo/test_config_flow.py b/tests/components/cookidoo/test_config_flow.py index f22cd1d76cf2..6384ba9459b3 100644 --- a/tests/components/cookidoo/test_config_flow.py +++ b/tests/components/cookidoo/test_config_flow.py @@ -146,6 +146,7 @@ async def test_flow_reauth_drops_tokens_of_a_failed_attempt( ) assert result["reason"] == "reauth_successful" + await hass.async_block_till_done() assert cookidoo_config_entry.data[CONF_TOKEN] == {} @@ -317,6 +318,7 @@ async def test_flow_reconfigure_success( assert result["type"] is FlowResultType.ABORT assert result["reason"] == "reconfigure_successful" + await hass.async_block_till_done() assert cookidoo_config_entry.data == { **MOCK_DATA_USER_STEP, CONF_EMAIL: "new-email", @@ -381,6 +383,7 @@ async def test_flow_reconfigure_init_data_unknown_error_and_recover_on_step_1( assert result["type"] is FlowResultType.ABORT assert result["reason"] == "reconfigure_successful" + await hass.async_block_till_done() assert cookidoo_config_entry.data == { **MOCK_DATA_USER_STEP, CONF_COUNTRY: "DE", @@ -443,6 +446,7 @@ async def test_flow_reconfigure_init_data_unknown_error_and_recover_on_step_2( assert result["type"] is FlowResultType.ABORT assert result["reason"] == "reconfigure_successful" + await hass.async_block_till_done() assert cookidoo_config_entry.data == { **MOCK_DATA_USER_STEP, CONF_COUNTRY: "DE", @@ -501,6 +505,7 @@ async def test_flow_reauth( assert result["type"] is FlowResultType.ABORT assert result["reason"] == "reauth_successful" + await hass.async_block_till_done() assert cookidoo_config_entry.data == { CONF_EMAIL: "new-email", CONF_PASSWORD: "new-password", @@ -554,6 +559,7 @@ async def test_flow_reauth_error_and_recover( assert result["type"] is FlowResultType.ABORT assert result["reason"] == "reauth_successful" + await hass.async_block_till_done() assert cookidoo_config_entry.data == { CONF_EMAIL: "new-email", CONF_PASSWORD: "new-password",