diff --git a/homeassistant/components/plum_lightpad/__init__.py b/homeassistant/components/plum_lightpad/__init__.py index aeabe8634f85..ecc1dacfb2f8 100644 --- a/homeassistant/components/plum_lightpad/__init__.py +++ b/homeassistant/components/plum_lightpad/__init__.py @@ -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