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):