@scrypted/server 0.5.8 → 0.5.9

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.8",
3
+ "version": "0.5.9",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@ffmpeg-installer/ffmpeg": "^1.1.0",
@@ -103,7 +103,10 @@ class DeviceState(scrypted_python.scrypted_sdk.types.DeviceState):
103
103
  if not deviceState:
104
104
  print("missing id %s" % self._id)
105
105
  return None
106
- return deviceState.get(property, None)
106
+ sdd = deviceState.get(property, None)
107
+ if not sdd:
108
+ return None
109
+ return sdd.get('value', None)
107
110
 
108
111
  def setScryptedProperty(self, property: str, value: Any):
109
112
  if property == ScryptedInterfaceProperty.id.value: