Skip to content

Commit

Permalink
Fix missing camera when no snapshot available
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
chemelli74 authored Oct 25, 2023
1 parent da7019b commit 6b297b4
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 6b297b4

Please sign in to comment.