Commit 32f279263d1652000021a02b45d178bd563a7bcb

Authored by Andrii Shvaika
1 parent 3ee3839c

Fix for entity events

@@ -120,7 +120,7 @@ public class DeviceController extends BaseController { @@ -120,7 +120,7 @@ public class DeviceController extends BaseController {
120 120
121 tbClusterService.pushMsgToCore(new DeviceNameOrTypeUpdateMsg(savedDevice.getTenantId(), 121 tbClusterService.pushMsgToCore(new DeviceNameOrTypeUpdateMsg(savedDevice.getTenantId(),
122 savedDevice.getId(), savedDevice.getName(), savedDevice.getType()), null); 122 savedDevice.getId(), savedDevice.getName(), savedDevice.getType()), null);
123 - tbClusterService.onEntityStateChange(device.getTenantId(), device.getId(), 123 + tbClusterService.onEntityStateChange(savedDevice.getTenantId(), device.getId(),
124 device.getId() == null ? ComponentLifecycleEvent.CREATED : ComponentLifecycleEvent.UPDATED); 124 device.getId() == null ? ComponentLifecycleEvent.CREATED : ComponentLifecycleEvent.UPDATED);
125 125
126 logEntityAction(savedDevice.getId(), savedDevice, 126 logEntityAction(savedDevice.getId(), savedDevice,