1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 04:19:03 +00:00

Trigger rescan on device remove (#5447)

This commit is contained in:
puddly
2025-01-16 12:16:47 -05:00
committed by GitHub
parent 0073227785
commit 12fd61142d

View File

@@ -305,6 +305,9 @@ class HomeAssistant(FileConfiguration, CoreSysAttributes):
# 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."""