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

Fixed update_device method

This commit is contained in:
samson0v
2024-03-20 10:08:05 +02:00
parent 4550b6a42f
commit 5451c3f666

View File

@@ -1424,6 +1424,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