Skip to content

Commit

Permalink
Merge pull request #1183 from samson0v/master
Browse files Browse the repository at this point in the history
Fixed send_current_configuration method
  • Loading branch information
samson0v authored Oct 10, 2023
2 parents 1f2b4d6 + 52dd19b commit 7ec4492
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7ec4492

Please sign in to comment.