diff --git a/server/package-lock.json b/server/package-lock.json index 7ceb04d97..d5500cf34 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/server", - "version": "0.123.56", + "version": "0.123.57", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@scrypted/server", - "version": "0.123.56", + "version": "0.123.57", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/server/python/plugin_remote.py b/server/python/plugin_remote.py index 6ef91f38b..df8a02335 100644 --- a/server/python/plugin_remote.py +++ b/server/python/plugin_remote.py @@ -115,7 +115,7 @@ class EventRegistry(object): ] __allowedEventInterfaces = set( - [ScryptedInterface.ScryptedDevice.value, "Logger", "Storage"] + [ScryptedInterface.ScryptedDevice.value, "Logger"] ) def __init__(self) -> None: diff --git a/server/src/event-registry.ts b/server/src/event-registry.ts index cc1133b33..59dea4f11 100644 --- a/server/src/event-registry.ts +++ b/server/src/event-registry.ts @@ -21,7 +21,7 @@ export function getMixinEventName(options: string | EventListenerOptions) { } // todo: storage should only go to host plugin -const allowedEventInterfaces = new Set([ScryptedInterface.ScryptedDevice, 'Logger', 'Storage']) +const allowedEventInterfaces = new Set([ScryptedInterface.ScryptedDevice, 'Logger']) export class EventRegistry { systemListeners = new Set<(id: string, eventDetails: EventDetails, eventData: any) => void>(); diff --git a/server/src/plugin/plugin-host-api.ts b/server/src/plugin/plugin-host-api.ts index 2c5cab70e..560741a51 100644 --- a/server/src/plugin/plugin-host-api.ts +++ b/server/src/plugin/plugin-host-api.ts @@ -130,7 +130,6 @@ export class PluginHostAPI extends PluginAPIManagedListeners implements PluginAP const device = this.scrypted.findPluginDevice(this.pluginId, nativeId) device.storage = storage; this.scrypted.datastore.upsert(device); - this.scrypted.stateManager.notifyInterfaceEvent(device, 'Storage', undefined); } async onDevicesChanged(deviceManifest: DeviceManifest) { diff --git a/server/src/services/plugin.ts b/server/src/services/plugin.ts index db3e3236f..1a3e4f520 100644 --- a/server/src/services/plugin.ts +++ b/server/src/services/plugin.ts @@ -50,7 +50,6 @@ export class PluginComponent { await this.scrypted.datastore.upsert(pluginDevice); const host = this.scrypted.getPluginHostForDeviceId(id); await host?.remote?.setNativeId?.(pluginDevice.nativeId, pluginDevice._id, storage); - this.scrypted.stateManager.notifyInterfaceEvent(pluginDevice, 'Storage', undefined); } async setMixins(id: string, mixins: string[]) { mixins = mixins || [];