Google Assistant: unset agent on unload (#86635)
This commit is contained in:
parent
4cafd393c6
commit
e06603bbbd
1 changed files with 3 additions and 0 deletions
|
@ -98,6 +98,9 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
for service_name in hass.services.async_services()[DOMAIN]:
|
for service_name in hass.services.async_services()[DOMAIN]:
|
||||||
hass.services.async_remove(DOMAIN, service_name)
|
hass.services.async_remove(DOMAIN, service_name)
|
||||||
|
|
||||||
|
if entry.options.get(CONF_ENABLE_CONVERSATION_AGENT, False):
|
||||||
|
conversation.async_unset_agent(hass, entry)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue