Skip to content

Commit e06603b

Browse files
authored
Google Assistant: unset agent on unload (home-assistant#86635)
1 parent 4cafd39 commit e06603b

File tree

1 file changed

+3
-0
lines changed
  • homeassistant/components/google_assistant_sdk

1 file changed

+3
-0
lines changed

homeassistant/components/google_assistant_sdk/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
9898
for service_name in hass.services.async_services()[DOMAIN]:
9999
hass.services.async_remove(DOMAIN, service_name)
100100

101+
if entry.options.get(CONF_ENABLE_CONVERSATION_AGENT, False):
102+
conversation.async_unset_agent(hass, entry)
103+
101104
return True
102105

103106

0 commit comments

Comments
 (0)