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

Merge pull request #1342 from samson0v/master

Fixed update_device method
This commit is contained in:
Illia Barkov
2024-03-20 14:58:29 +02:00
committed by GitHub

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