A live bird collage card for your Home Assistant dashboard.
limit the precision: the rest is just noise
frederik5a7b9a093ce8
diff --git a/scripts/utils/helpers.py b/scripts/utils/helpers.pyindex 8d9dc00c..297f00fd 100644--- a/scripts/utils/helpers.py+++ b/scripts/utils/helpers.py@@ -55,7 +55,7 @@ class Detection:def __init__(self, start_time, stop_time, species, confidence):self.start = float(start_time)self.stop = float(stop_time)- self.confidence = float(confidence)+ self.confidence = round(float(confidence), 4)self.confidence_pct = round(self.confidence * 100)self.species = speciesself.scientific_name = species.split('_')[0]