server: fix broken alerts. add python implementation stubs.

This commit is contained in:
Koushik Dutta
2021-12-10 21:48:19 -08:00
parent 7429a9552d
commit 3695701981
4 changed files with 9 additions and 5 deletions

View File

@@ -34,7 +34,9 @@ class SystemManager(scrypted_python.scrypted_sdk.SystemManager):
super().__init__()
self.api = api
self.systemState = systemState
async def getComponent(self, id: str) -> Any:
return await self.api.getComponent(id)
class DeviceState(scrypted_python.scrypted_sdk.DeviceState):
def __init__(self, id: str, nativeId: str, systemManager: SystemManager, deviceManager: scrypted_python.scrypted_sdk.DeviceManager) -> None: