1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Migrate matrix to use run_immediately for start listener (#115167)

* Migrate matrix to use run_immediately for start listener

* Migrate matrix to use run_immediately for start listener
This commit is contained in:
J. Nick Koston
2024-04-07 16:30:54 -10:00
committed by GitHub
parent af1023074e
commit 1fd5f64dcc
3 changed files with 29 additions and 4 deletions

View File

@@ -281,6 +281,9 @@ async def matrix_bot(
assert await async_setup_component(hass, MATRIX_DOMAIN, MOCK_CONFIG_DATA)
assert await async_setup_component(hass, NOTIFY_DOMAIN, MOCK_CONFIG_DATA)
await hass.async_block_till_done()
# Accessing hass.data in tests is not desirable, but all the tests here
# currently do this.
assert isinstance(matrix_bot := hass.data[MATRIX_DOMAIN], MatrixBot)
await hass.async_start()