From 52dd19bcb49936d1ac18037d26e641508ff4dac2 Mon Sep 17 00:00:00 2001 From: samson0v Date: Fri, 29 Sep 2023 10:17:30 +0300 Subject: [PATCH] Fixed send_current_configuration method --- .../tb_utility/tb_gateway_remote_configurator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py b/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py index c9032c59d..c966b00d1 100644 --- a/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py +++ b/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py @@ -146,7 +146,7 @@ def send_current_configuration(self): self._gateway.tb_client.client.send_attributes({'Version': self._gateway.version.get('current_version', 0.0)}) for connector in self.connectors_configuration: self._gateway.tb_client.client.send_attributes( - {connector['name']: {**connector, 'logLevel': connector['configurationJson']['logLevel'], + {connector['name']: {**connector, 'logLevel': connector['configurationJson'].get('logLevel', 'INFO'), 'ts': int(time() * 1000)}}) def _load_connectors_configuration(self):