Fix inertia calculation check

This commit is contained in:
Matti Hiljanen 2023-12-08 11:09:38 +02:00
parent a4f5ad3a94
commit 684baa0f19

View File

@ -195,7 +195,7 @@ class TrackedObject:
self.zone_presence[name] = zone_score + 1
# an object is only considered present in a zone if it has a zone inertia of 3+
if zone_score >= zone.inertia:
if self.zone_presence[name] >= zone.inertia:
current_zones.append(name)
if name not in self.entered_zones: