ensure init has been called in debug view

This commit is contained in:
Josh Hawkins 2023-10-14 14:05:45 -05:00
parent 419d5006c6
commit 271997768c

View File

@ -499,6 +499,9 @@ class CameraState:
# draw thicker box around ptz autotracked object
if (
self.camera_config.onvif.autotracking.enabled
and self.ptz_autotracker_thread.ptz_autotracker.autotracker_init[
self.name
]
and self.ptz_autotracker_thread.ptz_autotracker.tracked_object[
self.name
]