From d3d3956717da108d061384c0852dd7be34937977 Mon Sep 17 00:00:00 2001 From: zbeacon Date: Thu, 9 Feb 2023 08:52:29 +0200 Subject: [PATCH] Fix for getting sendOnlyOnChange parameter value --- thingsboard_gateway/gateway/duplicate_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thingsboard_gateway/gateway/duplicate_detector.py b/thingsboard_gateway/gateway/duplicate_detector.py index 5d87c69a..404d8291 100644 --- a/thingsboard_gateway/gateway/duplicate_detector.py +++ b/thingsboard_gateway/gateway/duplicate_detector.py @@ -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)