Skip to content

Commit

Permalink
Adjusted connection method to work with ids
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed Jan 12, 2024
1 parent cace714 commit c7382f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thingsboard_gateway/gateway/tb_gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def __connect_with_connectors(self):
connector_id = None
try:
if connector_config["config"][config] is not None:
if ("logLevel" in connector_config["config"][config] and "name" in connector_config["config"][config] and len(connector_config["config"][config].keys()) > 2) or \
if ("logLevel" in connector_config["config"][config] and "name" in connector_config["config"][config] and len(connector_config["config"][config].keys()) > 3) or \
("logLevel" not in connector_config["config"][config] and "name" not in connector_config["config"][config] and len(connector_config["config"][config].keys()) > 1):
connector_name = connector_config["name"]
connector_id = connector_config["id"]
Expand Down

0 comments on commit c7382f9

Please sign in to comment.