Should be abs(old_data - new_data) >= tolerance.

Not `abs(old_data - new_data) > tolerance`.
This commit is contained in:
Fabio Manganiello 2023-04-02 12:08:40 +02:00
parent a3f4b21478
commit 88784985e1
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -135,7 +135,7 @@ class SensorPlugin(RunnablePlugin, SensorEntityManager, ABC):
else: else:
tolerance = 0 tolerance = 0
return abs(old_data - new_data) > tolerance return abs(old_data - new_data) >= tolerance
def _has_changes( def _has_changes(
self, self,