Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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(savedDevice.getTenantId(), device.getId(), | 123 | + tbClusterService.onEntityStateChange(savedDevice.getTenantId(), savedDevice.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, |