mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-18 21:11:54 +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", [])
|
new_detections = new_activity[camera].get("detections", [])
|
||||||
if self.compare_audio_activity(camera, new_detections, now):
|
if self.compare_audio_activity(camera, new_detections, now):
|
||||||
logger.debug(f"Audio detections for {camera}: {new_activity}")
|
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(
|
self.publish(
|
||||||
"audio_detections",
|
"audio_detections",
|
||||||
json.dumps(self.current_audio_detections),
|
json.dumps(self.current_audio_detections),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user