src.nth.io/

summaryrefslogtreecommitdiff
path: root/scrypted/README.md
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-14 21:00:21 -0500
committerLuke Hoersten <[email protected]>2026-06-14 21:00:21 -0500
commit086398dde1deeb79af8d1db01a5197e668a5d561 (patch)
treef98cc1202b8fb1322829c81979c7278857a8bf6d /scrypted/README.md
parenta2489d2caabf6050b8ce197cfc85eebfa07fffd8 (diff)
scrypted: persist display_name across script reloads + prefer it over v.name
The script-reload re-discovery passed `name: nativeId` to onDeviceDiscovered, which Scrypted honored by renaming the existing "kitchen" device to its vp_xxx nativeId. The subsequent registerViewport fallback then saw a non-empty `v.name` (the nativeId) and used it as the viewport name when POSTing /config, sending the firmware /config with viewport="vp_mqek8i55_3z3s" instead of "kitchen". Fix two things: 1. start()'s re-discovery now passes the persisted display_name (set on createDevice + every Settings save) as the device's `name`, so the user-chosen kitchen name survives script reloads. 2. registerViewport now prefers storage's display_name over v.name — the storage value is the authoritative one, v.name is just a render that can briefly drift to the nativeId during reload.
Diffstat (limited to 'scrypted/README.md')
0 files changed, 0 insertions, 0 deletions