Use existing standard for values

This commit is contained in:
Nicolas Mowen 2023-07-14 08:09:27 -06:00 committed by GitHub
parent 8cd6a2c94f
commit b54ca25bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,7 @@ class AudioEventMaintainer(threading.Thread):
] = datetime.datetime.now().timestamp() ] = datetime.datetime.now().timestamp()
else: else:
self.inter_process_communicator.queue.put( self.inter_process_communicator.queue.put(
(f"{self.config.name}/audio/{label}", True) (f"{self.config.name}/audio/{label}", "ON")
) )
resp = requests.post( resp = requests.post(
@ -243,7 +243,7 @@ class AudioEventMaintainer(threading.Thread):
> self.config.audio.max_not_heard > self.config.audio.max_not_heard
): ):
self.inter_process_communicator.queue.put( self.inter_process_communicator.queue.put(
(f"{self.config.name}/audio/{detection['label']}", False) (f"{self.config.name}/audio/{detection['label']}", "OFF")
) )
resp = requests.put( resp = requests.put(