fix: Replace add_signal_receiver with bus.add_match
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
7
scan.py
7
scan.py
@@ -103,10 +103,11 @@ async def main():
|
||||
obj_manager_iface.on_interfaces_added(on_interfaces_added)
|
||||
|
||||
# Subscribe to PropertiesChanged signal to catch late-arriving device names
|
||||
bus.add_signal_receiver(
|
||||
await bus.add_match(
|
||||
on_properties_changed,
|
||||
signal_name='PropertiesChanged',
|
||||
dbus_namespace='org.freedesktop.DBus.Properties',
|
||||
mtype='signal',
|
||||
iface='org.freedesktop.DBus.Properties',
|
||||
member='PropertiesChanged',
|
||||
path_namespace='/org/bluez'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user