Small speed up to checking core state (#107845)

This commit is contained in:
J. Nick Koston
2024-01-18 08:41:32 -10:00
committed by GitHub
parent 32b0bf6b4e
commit c399cab427
68 changed files with 176 additions and 165 deletions

View File

@ -2452,7 +2452,7 @@ async def test_delayed_birth_message(
"""Test sending birth message does not happen until Home Assistant starts."""
mqtt_mock = await mqtt_mock_entry()
hass.state = CoreState.starting
hass.set_state(CoreState.starting)
birth = asyncio.Event()
await hass.async_block_till_done()