async def async_will_remove_from_hass(self):
        """Remove the listeners upon removing the component."""
        self._remove_listeners()
Remove the listeners upon removing the component.
custom_components/adaptive_lighting/switch.py