forked from home-assistant/core
Fix vlc_telnet disconnect on unload (#57836)
This commit is contained in:
@@ -53,7 +53,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
entry_data = hass.data[DOMAIN].pop(entry.entry_id)
|
entry_data = hass.data[DOMAIN].pop(entry.entry_id)
|
||||||
vlc = entry_data[DATA_VLC]
|
vlc = entry_data[DATA_VLC]
|
||||||
|
|
||||||
await hass.async_add_executor_job(disconnect_vlc, vlc)
|
await disconnect_vlc(vlc)
|
||||||
|
|
||||||
return unload_ok
|
return unload_ok
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user