Fix flaky update coordinator test (#128943)

pull/128945/head
G Johansson 2024-10-21 23:52:28 +02:00 committed by GitHub
parent 21095e80a7
commit a10e406131
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ from homeassistant.exceptions import (
ConfigEntryError,
ConfigEntryNotReady,
)
from homeassistant.helpers import update_coordinator
from homeassistant.helpers import frame, update_coordinator
from homeassistant.util.dt import utcnow
from tests.common import MockConfigEntry, async_fire_time_changed
@ -638,6 +638,7 @@ async def test_async_config_entry_first_refresh_invalid_state(
@pytest.mark.usefixtures("mock_integration_frame")
@patch.object(frame, "_REPORTED_INTEGRATIONS", set())
async def test_async_config_entry_first_refresh_invalid_state_in_integration(
hass: HomeAssistant, caplog: pytest.LogCaptureFixture
) -> None: