From 1915afd2c7e6f73509a691cd8705487394c1ed66 Mon Sep 17 00:00:00 2001 From: samson0v Date: Mon, 18 Sep 2023 15:29:18 +0300 Subject: [PATCH] Changed method acess --- thingsboard_gateway/gateway/tb_gateway_service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/thingsboard_gateway/gateway/tb_gateway_service.py b/thingsboard_gateway/gateway/tb_gateway_service.py index ec7312a3..e5a86c18 100644 --- a/thingsboard_gateway/gateway/tb_gateway_service.py +++ b/thingsboard_gateway/gateway/tb_gateway_service.py @@ -269,7 +269,7 @@ class TBGatewayService: self.init_grpc_service(self.__config.get('grpc')) self._load_connectors() - self._connect_with_connectors() + self.__connect_with_connectors() self.__load_persistent_devices() self.__devices_idle_checker = self.__config['thingsboard'].get('checkingDeviceActivity', {}) @@ -774,9 +774,9 @@ class TBGatewayService: log.info("Remote configuration is enabled forcibly!") def connect_with_connectors(self): - self._connect_with_connectors() + self.__connect_with_connectors() - def _connect_with_connectors(self): + def __connect_with_connectors(self): for connector_type in self.connectors_configs: for connector_config in self.connectors_configs[connector_type]: if self._implemented_connectors.get(connector_type.lower()) is not None: @@ -840,7 +840,7 @@ class TBGatewayService: if configuration_changed: self.__close_connectors() self._load_connectors() - self._connect_with_connectors() + self.__connect_with_connectors() # Updating global self.__config['connectors'] configuration for states syncing for connector_type in self.connectors_configs: