mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Avoid closing shared session for Comelit (#144682)
This commit is contained in:
parent
da79d5b2e3
commit
cf0911cc56
@ -77,6 +77,5 @@ async def async_unload_entry(hass: HomeAssistant, entry: ComelitConfigEntry) ->
|
|||||||
coordinator = entry.runtime_data
|
coordinator = entry.runtime_data
|
||||||
if unload_ok := await hass.config_entries.async_unload_platforms(entry, platforms):
|
if unload_ok := await hass.config_entries.async_unload_platforms(entry, platforms):
|
||||||
await coordinator.api.logout()
|
await coordinator.api.logout()
|
||||||
await coordinator.api.close()
|
|
||||||
|
|
||||||
return unload_ok
|
return unload_ok
|
||||||
|
@ -73,7 +73,6 @@ async def validate_input(hass: HomeAssistant, data: dict[str, Any]) -> dict[str,
|
|||||||
) from err
|
) from err
|
||||||
finally:
|
finally:
|
||||||
await api.logout()
|
await api.logout()
|
||||||
await api.close()
|
|
||||||
|
|
||||||
return {"title": data[CONF_HOST]}
|
return {"title": data[CONF_HOST]}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user