Hacky fix for inconsistently named camera.
authorScott Gasch <[email protected]>
Mon, 15 Aug 2022 17:36:47 +0000 (10:36 -0700)
committerScott Gasch <[email protected]>
Mon, 15 Aug 2022 17:36:47 +0000 (10:36 -0700)
camera_utils.py

index c2bd04da0adccdb439711e3df6fdacf700d92e84..63ab7f813eeb16f76da2f4589469e1f8b414b189 100644 (file)
@@ -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")