From 48874ec0d0797ec1788cbb3ddf8caf219da5cf9f Mon Sep 17 00:00:00 2001 From: imbeacon Date: Tue, 14 May 2024 12:16:22 +0300 Subject: [PATCH] Changed device update --- thingsboard_gateway/gateway/tb_gateway_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thingsboard_gateway/gateway/tb_gateway_service.py b/thingsboard_gateway/gateway/tb_gateway_service.py index f468aebb..236d4a41 100644 --- a/thingsboard_gateway/gateway/tb_gateway_service.py +++ b/thingsboard_gateway/gateway/tb_gateway_service.py @@ -1442,8 +1442,8 @@ class TBGatewayService: self.__connected_devices[device_name][event] = content if should_save: self.__save_persistent_devices() - self.send_to_storage(connector_name=content, - connector_id=self.available_connectors_by_name[content.name].get_id(), + self.send_to_storage(connector_name=content.get_name(), + connector_id=content.get_id(), data={"deviceName": device_name, "deviceType": self.__connected_devices[device_name][DEVICE_TYPE_PARAMETER], "attributes": [{"connectorName": content.name}]})