Skip to content

Commit

Permalink
publish on init
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Nov 1, 2023
1 parent 9cba0ad commit 7d807b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frigate/ptz/autotrack.py
Expand Up @@ -298,6 +298,8 @@ def _autotracker_setup(self, camera_config, camera):
if camera_config.onvif.autotracking.calibrate_on_startup:
self._calibrate_camera(camera)

self.ptz_metrics[camera]["ptz_tracking_active"].clear()
self.dispatcher.publish(f"{camera}/ptz_autotracker/active", "OFF", retain=False)
self.autotracker_init[camera] = True

def _write_config(self, camera):
Expand Down

0 comments on commit 7d807b1

Please sign in to comment.