Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Fix foor doorbell and camera
Browse files Browse the repository at this point in the history
Fix foor doorbell and camera
  • Loading branch information
DewGew authored Sep 29, 2023
1 parent 4d9fb09 commit f44148d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trait.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f44148d

Please sign in to comment.