• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zwave-js / zwave-js-ui / 19337408110
20%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2025 03:53PM UTC
Jobs 1
Files 68
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Nov 2025 03:52PM UTC coverage: 20.072% (-0.07%) from 20.143%
19337408110

push

github

web-flow
fix: refresh firmware update availability after update completes (#4457)

Fix firmware update button persistence after successful firmware update

## Summary

After successfully updating a device's firmware, the orange "firmware
update available" button remained visible in the UI, even though there
were no more updates available. The button only disappeared after
restarting the Docker container.

**Root Cause**: The `_onNodeFirmwareUpdateFinished` callback was not
querying for new firmware updates after a firmware update completed,
leaving stale data in the node's `availableFirmwareUpdates` field.

**Solution**: Modified the callback to automatically query for new
firmware updates and refresh the node data, ensuring the UI reflects the
current state immediately.

## Implementation Plan

- [x] Understand the issue and codebase structure
- [x] Modify `_onNodeFirmwareUpdateFinished` to query new firmware
updates
- Added call to `_checkFirmwareUpdatesAfterUpdate` after firmware update
finishes
  - Created new private method `_checkFirmwareUpdatesAfterUpdate`
  - Error handling with logging for any failures
- [x] Build and test the changes
- [x] Run lint and tests to ensure no regressions
- [x] Address code review feedback
- Added check for `disableAutomaticFirmwareUpdateChecks` configuration
option
- Extracted common logic into utility functions to reduce code
duplication:
    - `_filterFirmwareUpdates`: Filter out downgrades
    - `_cleanDismissedUpdates`: Clean up dismissed updates map
- `_updateNodeFirmwareInfo`: Update node firmware info in store and
memory
- Refactored both `checkAllNodesFirmwareUpdates` and
`_checkFirmwareUpdatesAfterUpdate` to use these utilities
- [x] Run security checks with CodeQL
- [x] Document the changes

## Changes Made

1. **Modified `_onNodeFirmwareUpdateFinished` callback**: 
- Added check for `disableAutomaticFirmwareUpdateChecks` before calling
firmware update check
   - Calls `_checkFirmwareUpdatesAfterUpdate` with err... (continued)

333 of 441 branches covered (75.51%)

Branch coverage included in aggregate %.

0 of 120 new or added lines in 1 file covered. (0.0%)

4048 of 21385 relevant lines covered (18.93%)

1.18 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
120
0.0
0.0% api/lib/ZwaveClient.ts
Jobs
ID Job ID Ran Files Coverage
1 19337408110.1 13 Nov 2025 03:53PM UTC 68
20.07
GitHub Action Run
Source Files on build 19337408110
  • Tree
  • List 68
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • eb955afe on github
  • Prev Build on master (#19300261028)
  • Next Build on master (#19368867633)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc