@switchbot/homebridge-switchbot 5.2.4 → 5.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2179,7 +2179,7 @@ async function editDevice(device) {
2179
2179
  nameLabel.style.color = "#6b7280";
2180
2180
  const nameInput = document.createElement("input");
2181
2181
  nameInput.type = "text";
2182
- nameInput.value = device.name || device.id;
2182
+ nameInput.value = device.configDeviceName || device.name || "";
2183
2183
  nameInput.style.width = "100%";
2184
2184
  nameInput.style.marginBottom = "12px";
2185
2185
  nameInput.style.padding = "8px 10px";
@@ -2325,7 +2325,7 @@ async function editDevice(device) {
2325
2325
  const { updateDevice: updateDevice2, syncParentPluginConfigFromDisk: syncParentPluginConfigFromDisk2, fetchDevices: fetchDevices2 } = await Promise.resolve().then(() => (init_api(), api_exports));
2326
2326
  const { renderDeviceList: renderDeviceList2 } = await Promise.resolve().then(() => (init_render(), render_exports));
2327
2327
  const params = {
2328
- deviceId: device.id,
2328
+ deviceId: device.deviceId,
2329
2329
  configDeviceName: nameInput.value || void 0,
2330
2330
  configDeviceType: typeSelect.value,
2331
2331
  connectionPreference: connectionPrefSelect.value,