resolve feedback from PR review

https://github.com/blakeblackshear/frigate/pull/8291#discussion_r1370083613
This commit is contained in:
Shaun Berryman 2023-10-24 07:08:18 -07:00
parent 5ee8e10e28
commit aa4df22785

View File

@ -595,12 +595,8 @@ class BirdsEyeFrameManager:
return False
# default the mode to the camera config at load time
# if we have a metric (which we always should as it is set onload)
# then use that value
birdseye_mode = camera_config.mode
if camera_metrics["birdseye_mode"]:
birdseye_mode = BirdseyeModeEnum.get(camera_metrics["birdseye_mode"].value)
# get the birdseye mode state from camera metrics
birdseye_mode = BirdseyeModeEnum.get(camera_metrics["birdseye_mode"].value)
# update the last active frame for the camera
self.cameras[camera]["current_frame"] = frame_time