Skip to content

Commit

Permalink
Changed method acess
Browse files Browse the repository at this point in the history
  • Loading branch information
samson0v committed Sep 18, 2023
1 parent 52855ba commit 1915afd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thingsboard_gateway/gateway/tb_gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', {})
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1915afd

Please sign in to comment.