Commit 4905e06
committed
fix: make port handling more robust
The old approach of port discovery and status handling relies on a
certain format of uhubctl output. It turned out that this is kinda
fragile, because it does not always contain the keyword 'off' for a
disabled port (eg. when indicator status is present). Fix this by
removing the status from discovery and adding 'indicator' to status
handling.
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>1 parent d89279c commit 4905e06
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments