Skip to content

Commit 24f123a

Browse files
committed
ui: give ghost devices a path
1 parent 90ab457 commit 24f123a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/solaar/listener.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,14 @@
5454

5555
ACTION_ADD = "add"
5656

57-
_GHOST_DEVICE = namedtuple("_GHOST_DEVICE", ("receiver", "number", "name", "kind", "online"))
57+
_GHOST_DEVICE = namedtuple("_GHOST_DEVICE", ("receiver", "number", "name", "kind", "online", "path"))
5858
_GHOST_DEVICE.__bool__ = lambda self: False
5959
_GHOST_DEVICE.__nonzero__ = _GHOST_DEVICE.__bool__
6060

6161

6262
def _ghost(device):
6363
return _GHOST_DEVICE(
64-
receiver=device.receiver,
65-
number=device.number,
66-
name=device.name,
67-
kind=device.kind,
68-
online=False,
64+
receiver=device.receiver, number=device.number, name=device.name, kind=device.kind, online=False, path=None
6965
)
7066

7167

0 commit comments

Comments
 (0)