mirror of
https://github.com/koush/scrypted.git
synced 2026-08-01 19:00:37 +01:00
The python port of plugin-remote's notify() updates systemState but the dispatch to systemManager.events was left as a commented-out TODO, so systemManager.listen() callbacks never fire in python plugins/clients (plugin-remote.ts dispatches via notifyEventDetails here). Port the current typescript semantics: plain property changes update state and notify listeners with the unwrapped value, everything else passes through raw, and mixin property events no longer write device state. Also fix EventRegistry.listenDevice to register callbacks in the token-keyed listener set (it raised KeyError on the device id key, diverging from event-registry.ts) so watch-mode device listeners work. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>