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

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

No files matched your search

@@ -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."""