From 27eb2a6088765458039c740a6502afae1e21954a Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 30 Jun 2023 12:51:50 -0500 Subject: [PATCH] fix mypy error --- frigate/comms/mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/comms/mqtt.py b/frigate/comms/mqtt.py index 8a941d7fa..287232aec 100644 --- a/frigate/comms/mqtt.py +++ b/frigate/comms/mqtt.py @@ -66,7 +66,7 @@ class MqttClient(Communicator): # type: ignore[misc] ) self.publish( f"{camera_name}/ptz_autotracker/state", - "ON" if camera.onvif.autotracking.enabled else "OFF", # type: ignore[union-attr] + "ON" if camera.onvif.autotracking.enabled else "OFF", retain=True, ) self.publish(