Unregister mobile_app notification services when a device is removed (#39359)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-08-28 12:37:19 -05:00
1 parent 33a05541a4
commit 85869be2d8
3 files changed
+25 -2

No files matched your search

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