Fix inertia calculation check (#8890)

This commit is contained in:
Matti Hiljanen
2023-12-08 15:30:22 +02:00
committed by GitHub
parent a4f5ad3a94
commit e512406764

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: