Formatting

This commit is contained in:
Nicolas Mowen 2025-08-26 08:18:09 -06:00
parent d6ff8d1172
commit 705bb9c7ae

View File

@ -181,7 +181,10 @@ class AudioActivityManager:
new_detections = new_activity[camera].get("detections", [])
if self.compare_audio_activity(camera, new_detections, now):
logger.debug(f"Audio detections for {camera}: {new_activity}")
self.publish(f"{camera}/audio/all", "ON" if len(self.current_audio_detections[camera]) > 0 else "OFF")
self.publish(
f"{camera}/audio/all",
"ON" if len(self.current_audio_detections[camera]) > 0 else "OFF",
)
self.publish(
"audio_detections",
json.dumps(self.current_audio_detections),