diff --git a/application/src/main/java/org/thingsboard/server/service/iot_hub/DeviceUpdateRequest.java b/application/src/main/java/org/thingsboard/server/service/iot_hub/DeviceUpdateRequest.java index 223c2eb723..a62f556c57 100644 --- a/application/src/main/java/org/thingsboard/server/service/iot_hub/DeviceUpdateRequest.java +++ b/application/src/main/java/org/thingsboard/server/service/iot_hub/DeviceUpdateRequest.java @@ -38,7 +38,8 @@ public class DeviceUpdateRequest { @Data public static class Step { private String name; - // The package step's stable id, so that a next version can rename the step + // The package step's stable id, so that a next version can rename the step. It is also the step's install state + // key when set, which the default converter update relies on to write the state back under the stored key private String id; // InstallStepType of the package: DEVICE_PROFILE, DEVICE, GATEWAY, GATEWAY_CONNECTOR, DASHBOARD, RULE_CHAIN, // UPLINK_CONVERTER, DOWNLINK_CONVERTER, INTEGRATION diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts index ac73616893..79cb97b0d3 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts @@ -2615,11 +2615,14 @@ export class TbDeviceInstallDialogComponent extends DialogComponent(); for (const step of this.packageInfo.installSteps[this.selectedInstallMethod] ?? []) { - if (step.type !== InstallStepType.SHOW_FORM && !ENTITY_STEP_TYPES.has(step.type)) { + if (!ENTITY_STEP_TYPES.has(step.type)) { continue; } const key = this.stateKeyOf(step); diff --git a/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts b/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts index 49c5dbf50d..07fac4bf63 100644 --- a/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts +++ b/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts @@ -62,7 +62,8 @@ export interface DeviceUpdateStep { serverAttributes?: any; sharedAttributes?: any; resolution?: string; - // The package step's stable id, so that a next version can rename the step + // The package step's stable id, so that a next version can rename the step. When set it is also the step's install + // state key: the default converter update sends the stored key here to write the state back under it id?: string; // INTEGRATION: the step's metadata entries, which a KEEP merges into the integration; null removes an entry metadata?: Record;