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