From 6c62f975d063fa028e949251aba14123ab723ff1 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Mon, 12 Apr 2021 23:20:19 -0400 Subject: [PATCH] ui: directly connected devices don't need to support connection notifications --- lib/solaar/listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solaar/listener.py b/lib/solaar/listener.py index fd5da2a8..6d931f61 100644 --- a/lib/solaar/listener.py +++ b/lib/solaar/listener.py @@ -84,7 +84,7 @@ class ReceiverListener(_listener.EventsListener): if _log.isEnabledFor(_INFO): _log.info('%s: notifications listener has started (%s)', self.receiver, self.receiver.handle) notification_flags = self.receiver.enable_connection_notifications() - assert notification_flags & _hidpp10.NOTIFICATION_FLAG.wireless, \ + assert self.receiver.isDevice or (notification_flags & _hidpp10.NOTIFICATION_FLAG.wireless), \ 'Receiver on %s does not support connection notifications, GUI will not show it' % self.receiver.path self.receiver.status[_status.KEYS.NOTIFICATION_FLAGS] = notification_flags self.receiver.notify_devices()