diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index eca157b6403..0580b91929c 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -246,7 +246,8 @@ class ConfigEntry: wait_time = 2 ** min(tries, 4) * 5 tries += 1 _LOGGER.warning( - "Config entry for %s not ready yet. Retrying in %d seconds", + "Config entry '%s' for %s integration not ready yet. Retrying in %d seconds", + self.title, self.domain, wait_time, ) diff --git a/tests/test_config_entries.py b/tests/test_config_entries.py index 56387069fe4..24444f6a6c0 100644 --- a/tests/test_config_entries.py +++ b/tests/test_config_entries.py @@ -792,7 +792,7 @@ async def test_update_entry_options_and_trigger_listener(hass, manager): async def test_setup_raise_not_ready(hass, caplog): """Test a setup raising not ready.""" - entry = MockConfigEntry(domain="test") + entry = MockConfigEntry(title="test_title", domain="test") mock_setup_entry = AsyncMock(side_effect=ConfigEntryNotReady) mock_integration(hass, MockModule("test", async_setup_entry=mock_setup_entry)) @@ -802,7 +802,7 @@ async def test_setup_raise_not_ready(hass, caplog): await entry.async_setup(hass) assert len(mock_call.mock_calls) == 1 - assert "Config entry for test not ready yet" in caplog.text + assert "Config entry 'test_title' for test integration not ready yet" in caplog.text p_hass, p_wait_time, p_setup = mock_call.mock_calls[0][1] assert p_hass is hass