@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 +1 -1
- package/python/plugin-remote.py +4 -1
package/package.json
CHANGED
package/python/plugin-remote.py
CHANGED
@@ -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
|
-
|
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:
|