Skip to content

Commit

Permalink
ui: give ghost devices a path
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Feb 8, 2025
1 parent 90ab457 commit 24f123a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/solaar/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,14 @@

ACTION_ADD = "add"

_GHOST_DEVICE = namedtuple("_GHOST_DEVICE", ("receiver", "number", "name", "kind", "online"))
_GHOST_DEVICE = namedtuple("_GHOST_DEVICE", ("receiver", "number", "name", "kind", "online", "path"))
_GHOST_DEVICE.__bool__ = lambda self: False
_GHOST_DEVICE.__nonzero__ = _GHOST_DEVICE.__bool__


def _ghost(device):
return _GHOST_DEVICE(
receiver=device.receiver,
number=device.number,
name=device.name,
kind=device.kind,
online=False,
receiver=device.receiver, number=device.number, name=device.name, kind=device.kind, online=False, path=None
)


Expand Down

0 comments on commit 24f123a

Please sign in to comment.