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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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