Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: normalize result of Controller.getAvailableFirmwareUpdates to always include channel field #6359

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

raman325
Copy link
Contributor

@raman325 raman325 commented Oct 2, 2023

The V1 API for the firmware update service doesn't include channel in the payload so we have to insert it

Copy link
Member

@AlCalzone AlCalzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should rather normalize the response to always include the channel here:

return result.map((update) => ({
device: deviceId,
...update,
}));

@raman325
Copy link
Contributor Author

raman325 commented Oct 6, 2023

good idea, I will adjust this PR accordingly

@raman325 raman325 changed the title fix: update type for FirmwareUpdateServiceResponse fix: normalize return for Controller.getAvailableFirmwareUpdates Oct 6, 2023
@AlCalzone AlCalzone changed the title fix: normalize return for Controller.getAvailableFirmwareUpdates fix: normalize result of Controller.getAvailableFirmwareUpdates to always include channel field Oct 9, 2023
@AlCalzone AlCalzone merged commit 41cdf95 into zwave-js:master Oct 9, 2023
16 checks passed
AlCalzone added a commit that referenced this pull request Oct 9, 2023
### Bugfixes
* Normalize result of `Controller.getAvailableFirmwareUpdates` to always include `channel` field (#6359)
* Fixed a crash that could happen while logging dropped sensor readings (#6379)
* Increased the range and default of the `response` timeout to accomodate slower 500 series controllers (#6378)

### Config file changes
* Treat Basic Set as events for TKB TZ35S/D and TZ55S/D (#6381)
* Add Zooz ZAC38 Range Extender (#6136)
* Corrected the label of the notification event `0x0a` to be `Emergency Alarm` (#6368)
@raman325 raman325 deleted the typing branch October 9, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants