1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Fix for getting sendOnlyOnChange parameter value

This commit is contained in:
zbeacon
2023-02-09 08:52:29 +02:00
parent 69f4374033
commit d3d3956717

View File

@@ -40,7 +40,7 @@ class DuplicateDetector:
def filter_data(self, connector_name, new_data):
in_data_filter_enabled = new_data.get(SEND_ON_CHANGE_PARAMETER)
if isinstance(in_data_filter_enabled, bool) and not in_data_filter_enabled:
if not in_data_filter_enabled or not isinstance(in_data_filter_enabled, bool):
return new_data
ttl = new_data.get(SEND_ON_CHANGE_TTL_PARAMETER)