mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
Added device connector name updating when connector name changed
This commit is contained in:
parent
00d99d2ec4
commit
c4acd3aa2f
|
|
@ -1442,6 +1442,11 @@ 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(),
|
||||
data={"deviceName": device_name,
|
||||
"deviceType": self.__connected_devices[device_name][DEVICE_TYPE_PARAMETER],
|
||||
"attributes": [{"connectorName": content.name}]})
|
||||
|
||||
def del_device_async(self, data):
|
||||
if data['deviceName'] in self.__saved_devices:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user