mirror of
https://github.com/koush/scrypted.git
synced 2026-06-20 16:40:30 +01:00
server: fix python plugin request restart failure
This commit is contained in:
@@ -178,7 +178,7 @@ class DeviceManager(scrypted_python.scrypted_sdk.types.DeviceManager):
|
||||
return await self.systemManager.api.onMixinEvent(id, mixinDevice, eventInterface, eventData)
|
||||
|
||||
async def requestRestart(self) -> None:
|
||||
return await self.systemManager.api.onMixinEvent(id)
|
||||
return await self.systemManager.api.requestRestart()
|
||||
|
||||
def getDeviceStorage(self, nativeId: str = None) -> Storage:
|
||||
return self.nativeIds.get(nativeId, None)
|
||||
|
||||
Reference in New Issue
Block a user