mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 08:35:15 +02:00
Fix memory leak in plum_lightpad (#49472)
This commit is contained in:
@@ -76,5 +76,5 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||||||
"""Clean up resources."""
|
"""Clean up resources."""
|
||||||
plum.cleanup()
|
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
|
return True
|
||||||
|
Reference in New Issue
Block a user