mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-16 03:52:09 +03:00
Formatting
This commit is contained in:
parent
d6ff8d1172
commit
705bb9c7ae
@ -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),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user