diff --git a/thingsboard_gateway/gateway/tb_gateway_service.py b/thingsboard_gateway/gateway/tb_gateway_service.py index ec7312a37..e5a86c18b 100644 --- a/thingsboard_gateway/gateway/tb_gateway_service.py +++ b/thingsboard_gateway/gateway/tb_gateway_service.py @@ -269,7 +269,7 @@ def __init__(self, config_file=None): 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 @@ def _load_connectors(self, config=None): 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 @@ def check_connector_configuration_updates(self): 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: