Only show firmware update warning if no firmware update is in progress (#13068)

This commit is contained in:
Raman Gupta 2022-07-07 09:03:11 -04:00 committed by GitHub
parent f8bccf9e79
commit 399efca411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,13 @@ export const getZwaveDeviceActions = async (
), ),
action: async () => { action: async () => {
if ( if (
isNodeFirmwareUpdateInProgress ||
(await fetchZwaveNodeIsFirmwareUpdateInProgress(hass, device.id))
) {
showZWaveJUpdateFirmwareNodeDialog(el, {
device,
});
} else if (
await showConfirmationDialog(el, { await showConfirmationDialog(el, {
text: hass.localize( text: hass.localize(
"ui.panel.config.zwave_js.update_firmware.warning" "ui.panel.config.zwave_js.update_firmware.warning"