forked from platypush/platypush
Should be abs(old_data - new_data) >= tolerance
.
Not `abs(old_data - new_data) > tolerance`.
This commit is contained in:
parent
a3f4b21478
commit
88784985e1
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue