Fix memory leak in plum_lightpad (#49472)
This commit is contained in:
parent
76b59a3983
commit
e288afa7a3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue