mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix flaky update coordinator test (#128943)
This commit is contained in:
parent
21095e80a7
commit
a10e406131
@ -18,7 +18,7 @@ from homeassistant.exceptions import (
|
|||||||
ConfigEntryError,
|
ConfigEntryError,
|
||||||
ConfigEntryNotReady,
|
ConfigEntryNotReady,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers import update_coordinator
|
from homeassistant.helpers import frame, update_coordinator
|
||||||
from homeassistant.util.dt import utcnow
|
from homeassistant.util.dt import utcnow
|
||||||
|
|
||||||
from tests.common import MockConfigEntry, async_fire_time_changed
|
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")
|
@pytest.mark.usefixtures("mock_integration_frame")
|
||||||
|
@patch.object(frame, "_REPORTED_INTEGRATIONS", set())
|
||||||
async def test_async_config_entry_first_refresh_invalid_state_in_integration(
|
async def test_async_config_entry_first_refresh_invalid_state_in_integration(
|
||||||
hass: HomeAssistant, caplog: pytest.LogCaptureFixture
|
hass: HomeAssistant, caplog: pytest.LogCaptureFixture
|
||||||
) -> None:
|
) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user