From 93c4af0b7c9985295475f6be9950f0bee4aba79b Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:22:07 -0500 Subject: [PATCH] Trigger rescan on device remove --- supervisor/homeassistant/module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/supervisor/homeassistant/module.py b/supervisor/homeassistant/module.py index b76bb58d9f2..3d4a1748472 100644 --- a/supervisor/homeassistant/module.py +++ b/supervisor/homeassistant/module.py @@ -305,6 +305,9 @@ async def load(self) -> None: # Register for events self.sys_bus.register_event(BusEvent.HARDWARE_NEW_DEVICE, self._hardware_events) + self.sys_bus.register_event( + BusEvent.HARDWARE_REMOVE_DEVICE, self._hardware_events + ) def write_pulse(self): """Write asound config to file and return True on success."""