mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 10:00:34 +02:00
Devices: fixes from review round 6
- The headset a change is meant for is checked and the work counted in one step, so a switch can't slip in between (uploads too). - A sideloaded title read on one headset can't be installed on another; open confirmations close on a switch. - The only headset can't be removed while its ssh alias stays behind. - Answers about the previous headset are dropped without touching panels; the catalogue's Installed tags are rebuilt for the new headset. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
41ac28248a
commit
ba33d2ff40
4 files changed
+35
-12
No files matched your search
@@ -354,6 +354,11 @@ class Connecting(unittest.TestCase):
|
||||
for body in bad:
|
||||
with self.assertRaises(fd.DeviceError, msg=body):
|
||||
fl.devices_action(self.link, body, open_setup=lambda *a: self.fail("setup ran"))
|
||||
# The only headset, whose ssh alias would stay: not without removing that too.
|
||||
(self.dir / "ssh" / "config").write_text("# >>> steam-frame (frame-t) >>>\nHost frame-t\n HostName localhost\n"
|
||||
"Host *\n# <<< steam-frame (frame-t) <<<\n")
|
||||
with self.assertRaises(fd.DeviceError):
|
||||
fl.devices_action(self.link, {"action": "remove", "id": d["id"]}, None)
|
||||
opened = []
|
||||
out = fl.devices_action(self.link, {"action": "setup", "alias": "frame-9", "host": "192.168.1.50"},
|
||||
open_setup=lambda alias, host: opened.append((alias, host)) or "a terminal")
|
||||
|
||||
Reference in new issue
Block a user