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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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."""