From f44148d1cf4556306c68834cfb08ead9772c0ff1 Mon Sep 17 00:00:00 2001 From: DewGew Date: Fri, 29 Sep 2023 12:33:35 +0200 Subject: [PATCH] Fix foor doorbell and camera Fix foor doorbell and camera --- trait.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trait.py b/trait.py index 6b7448b..ef96285 100644 --- a/trait.py +++ b/trait.py @@ -1013,16 +1013,16 @@ def sync_attributes(self): def query_attributes(self): """Return camera stream attributes.""" + return {} + + def execute(self, command, params, challenge): + """Execute a get camera stream command.""" for camUrl, idx in enumerate(configuration['Camera_Stream']['Cameras']['Idx']): if idx in self.state.id: url = configuration['Camera_Stream']['Cameras']['Camera_URL'][camUrl] self.stream_info = {'cameraStreamAccessUrl': url} return self.stream_info or {} - def execute(self, command, params, challenge): - """Execute a get camera stream command.""" - return - @register_trait class TooglesTrait(_Trait):