Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed Mar 21, 2024
2 parents 36c1958 + 230aa20 commit 9d42c41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thingsboard_gateway/gateway/tb_gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,8 @@ def add_device(self, device_name, content, device_type=None):

def update_device(self, device_name, event, content):
should_save = False
if self.__connected_devices.get(device_name) is None:
return
if event == 'connector' and self.__connected_devices[device_name].get(event) != content:
should_save = True
self.__connected_devices[device_name][event] = content
Expand Down

0 comments on commit 9d42c41

Please sign in to comment.