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 11:59:06 +02:00
committed by GitHub
parent aa957600ce
commit d83ab7bb04
@@ -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