mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 08:06:30 +00:00
Trigger rescan on device remove (#5447)
This commit is contained in:
parent
0073227785
commit
12fd61142d
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user