Skip to content

Commit

Permalink
Merge pull request #57 from chemelli74/patch-2
Browse files Browse the repository at this point in the history
Fix missing camera when no snapshot available
  • Loading branch information
elad-bar authored Nov 5, 2023
2 parents da7019b + 6b297b4 commit 33be6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/shinobi/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _set_stream_source(self, monitor: MonitorData):
use_original_stream = config_manager.use_original_stream
snapshot = monitor.snapshot

if snapshot.startswith("/"):
if snapshot and snapshot.startswith("/"):
snapshot = snapshot[1:]

snapshot = api.build_url(f"{{base_url}}{snapshot}")
Expand Down

0 comments on commit 33be6ab

Please sign in to comment.