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

Ensure mobile_app notifications get re-registered after adding,removing,adding (#39362)

This commit is contained in:
J. Nick Koston
2020-08-28 14:08:09 -05:00
committed by GitHub
parent a99efcb5c2
commit 92c06f0818
2 changed files with 18 additions and 4 deletions

View File

@@ -96,6 +96,13 @@ async def setup_push_receiver(hass, aioclient_mock):
assert hass.services.has_service("notify", "mobile_app_test")
assert not hass.services.has_service("notify", "mobile_app_loaded_late")
loaded_late_entry.add_to_hass(hass)
assert await hass.config_entries.async_setup(loaded_late_entry.entry_id)
await hass.async_block_till_done()
assert hass.services.has_service("notify", "mobile_app_test")
assert hass.services.has_service("notify", "mobile_app_loaded_late")
async def test_notify_works(hass, aioclient_mock, setup_push_receiver):
"""Test notify works."""