Fix issue when you have multiple Google Generative AI config entries and you remove one of them (#118365)

This commit is contained in:
tronikos 2024-05-29 02:59:06 -07:00 committed by GitHub
parent aa957600ce
commit d83ab7bb04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,5 +129,4 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
if not await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
return False
genai.configure(api_key=None)
return True