Unregister Google sheets services during unload (#79314)

* Unregister services during unload - Google Sheets

* uno mas
This commit is contained in:
Robert Hillis 2022-09-29 14:29:41 -04:00 committed by GitHub
parent ba6a81c565
commit d7d6637d79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -80,6 +80,7 @@ async def mock_setup_integration(
assert len(entries) == 1
await hass.config_entries.async_unload(entries[0].entry_id)
await hass.async_block_till_done()
assert not len(hass.services.async_services().get(DOMAIN, {}))
assert not hass.data.get(DOMAIN)
assert entries[0].state is ConfigEntryState.NOT_LOADED