@scrypted/server 0.7.58 → 0.7.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @scrypted/server might be problematic. Click here for more details.
- package/package.json +1 -1
- package/python/plugin_remote.py +1 -1
- package/src/plugin/system.ts +2 -2
package/package.json
CHANGED
package/python/plugin_remote.py
CHANGED
@@ -309,7 +309,7 @@ class PluginRemote:
|
|
309
309
|
clusterPeers: Mapping[int, asyncio.Future[rpc.RpcPeer]] = {}
|
310
310
|
async def connectRPCObject(value):
|
311
311
|
clusterObject = getattr(value, '__cluster')
|
312
|
-
if not
|
312
|
+
if type(clusterObject) is not dict:
|
313
313
|
return value
|
314
314
|
|
315
315
|
if clusterObject.get('id', None) != clusterId:
|
package/src/plugin/system.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EventListener, EventListenerOptions, EventListenerRegister, Logger, ScryptedDevice, ScryptedDeviceType, ScryptedInterface, ScryptedInterfaceDescriptor, ScryptedInterfaceDescriptors, ScryptedInterfaceProperty, SystemDeviceState, SystemManager } from "@scrypted/types";
|
2
2
|
import { EventRegistry } from "../event-registry";
|
3
3
|
import { PrimitiveProxyHandler, RpcPeer } from '../rpc';
|
4
|
-
import type { PluginComponent } from "../services/plugin";
|
4
|
+
// import type { PluginComponent } from "../services/plugin";
|
5
5
|
import { getInterfaceMethods, getInterfaceProperties, getPropertyInterfaces, isValidInterfaceMethod, propertyInterfaces } from "./descriptor";
|
6
6
|
import { PluginAPI } from "./plugin-api";
|
7
7
|
|
@@ -122,7 +122,7 @@ class DeviceProxyHandler implements PrimitiveProxyHandler<any>, ScryptedDevice {
|
|
122
122
|
}
|
123
123
|
|
124
124
|
async setMixins(mixins: string[]) {
|
125
|
-
const plugins = await this.systemManager.getComponent('plugins') as PluginComponent;
|
125
|
+
const plugins = await this.systemManager.getComponent('plugins');// as PluginComponent;
|
126
126
|
await plugins.setMixins(this.id, mixins);
|
127
127
|
}
|
128
128
|
|