From 24e38c76beada84be1864480366ef3c9f21ad039 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Mon, 15 Aug 2022 10:36:47 -0700 Subject: [PATCH] Hacky fix for inconsistently named camera. --- camera_utils.py | 2 ++ 1 file changed, 2 insertions(+) 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") -- 2.47.1