Use the hash instead of ID to get the Status

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-05-05 19:47:01 +02:00
parent ecd12f18e0
commit 2c54df832c
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -20,6 +20,7 @@ type Device struct {
Name string
Status Status
VidPid string
Hash string
Permanent bool
}
@@ -57,6 +58,7 @@ func parseLine(line string) (Device, error) {
Name: name,
Status: status,
VidPid: extractUnquoted(rest, "id"),
Hash: extractField(rest, "hash"),
}, nil
}