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 zWave port listing and binding #602

Merged
merged 3 commits into from
Nov 13, 2019

Conversation

sescandell
Copy link
Contributor

@sescandell sescandell commented Nov 9, 2019

Pull Request check-list

To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:

  • If your changes affects code, did your write the tests?
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (npm run prettier on both front/server)
  • If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
  • If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.
  • Did you add fake requests data for the demo mode (front/src/config/demo.json) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

The request to list available ports to select the zWave USB stick remains unfinished.
This is because of a BC in SerialPort: the list method is now returning a Promise and doesn't support the callback parameter. See here: https://github.com/serialport/node-serialport/blob/master/UPGRADE_GUIDE.md#upgrading-from-7x-to-8x

In the BC, the comName field is now named path.

By the way, this PR also fix an issue when selecting a value in the selector and clicking "Connect": the value sent to the server was an empty string.

@codecov
Copy link

codecov bot commented Nov 9, 2019

Codecov Report

Merging #602 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #602      +/-   ##
==========================================
+ Coverage   91.89%   91.91%   +0.01%     
==========================================
  Files         396      396              
  Lines        4824     4821       -3     
==========================================
- Hits         4433     4431       -2     
+ Misses        391      390       -1
Flag Coverage Δ
#server 91.91% <100%> (+0.01%) ⬆️
Impacted Files Coverage Δ
server/services/usb/api/usb.controller.js 100% <100%> (ø) ⬆️
server/services/usb/index.js 75% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 30ac264...48dcfa7. Read the comment docs.

@Pierre-Gilles Pierre-Gilles merged commit 5bf6928 into GladysAssistant:master Nov 13, 2019
@Pierre-Gilles
Copy link
Contributor

Many thanks for this PR, this was indeed the bug!

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