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: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 1 deletions

View File

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