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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user