1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
imbeacon
2024-03-21 11:45:55 +02:00

View File

@@ -1425,6 +1425,8 @@ class TBGatewayService:
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