@scrypted/server 0.5.9 → 0.5.10
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 +3 -1
package/package.json
CHANGED
package/python/plugin-remote.py
CHANGED
@@ -24,6 +24,7 @@ from typing import Any, Dict, List, Optional, Set, Tuple
|
|
24
24
|
import aiofiles
|
25
25
|
import scrypted_python.scrypted_sdk.types
|
26
26
|
from scrypted_python.scrypted_sdk.types import (Device, DeviceManifest,
|
27
|
+
EventDetails,
|
27
28
|
ScryptedInterfaceProperty,
|
28
29
|
Storage)
|
29
30
|
from typing_extensions import TypedDict
|
@@ -375,7 +376,8 @@ class PluginRemote:
|
|
375
376
|
else:
|
376
377
|
self.systemState[id] = state
|
377
378
|
|
378
|
-
async def notify(self, id,
|
379
|
+
async def notify(self, id, eventDetails: EventDetails, value):
|
380
|
+
property = eventDetails.get('property')
|
379
381
|
if property:
|
380
382
|
state = None
|
381
383
|
if self.systemState:
|