@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@ffmpeg-installer/ffmpeg": "^1.1.0",
@@ -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, eventTime, eventInterface, property, value, changed=False):
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: