Skip to content

Commit

Permalink
Fixed XMPP Connector backup making
Browse files Browse the repository at this point in the history
  • Loading branch information
samson0v committed Nov 16, 2023
1 parent 1468e01 commit 048fa15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thingsboard_gateway/connectors/xmpp/xmpp_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ def _reformat_devices_config(self):
jid=device_jid,
device_name_expression=config['deviceNameExpression'],
device_type_expression=config['deviceTypeExpression'],
attributes=config['attributes'],
timeseries=config['timeseries'],
attribute_updates=config['attributeUpdates'],
server_side_rpc=config['serverSideRpc']
attributes=config.get('attributes', []),
timeseries=config.get('timeseries', []),
attribute_updates=config.get('attributeUpdates', []),
server_side_rpc=config.get('serverSideRpc', [])
)
self._devices[device_jid].set_converter(converter(config, self.__log))
except KeyError as e:
Expand Down

0 comments on commit 048fa15

Please sign in to comment.