mirror of https://github.com/home-assistant/core
Fix memory leak in plum_lightpad (#49472)
This commit is contained in:
parent
76b59a3983
commit
e288afa7a3
|
@ -76,5 +76,5 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||
"""Clean up resources."""
|
||||
plum.cleanup()
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, cleanup)
|
||||
entry.async_on_unload(hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, cleanup))
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue