summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-08-15 10:36:47 -0700
committerScott Gasch <[email protected]>2022-08-15 10:36:47 -0700
commit24e38c76beada84be1864480366ef3c9f21ad039 (patch)
tree5916fe8429efbe790a3e4176c61cf0117569f5ba
parent6ca1a7b51513673a7ae10ee38057e83aaee4c409 (diff)
Hacky fix for inconsistently named camera.
-rw-r--r--camera_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/camera_utils.py b/camera_utils.py
index c2bd04d..63ab7f8 100644
--- a/camera_utils.py
+++ b/camera_utils.py
@@ -174,6 +174,8 @@ def _fetch_camera_image(camera_name: str, *, width: int = 256, quality: int = 70
"""Fetch a webcam image given the camera name."""
logger.debug("Trying to fetch camera image from video server")
+ if camera_name == 'frontdoor':
+ camera_name = 'front_door'
raw = fetch_camera_image_from_video_server(camera_name, width=width, quality=quality)
if raw is None:
logger.debug("Reading from video server failed; trying direct RTSP stream")