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

z2m reversed binary #1517

Merged
merged 1 commit into from
May 13, 2022

Conversation

atrovato
Copy link
Contributor

@atrovato atrovato commented May 7, 2022

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 you are adding a new features/services, did you run integration comparator? (npm run compare-translations on front)
  • Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community for testing before merging.
  • [ ] 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.js) 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

Reverse z2m contact values for opening_sensor
https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/79?u=alextrovato


Gladys z2m mapping feature now declares a "reversed" attribute to reverse true/false values.

@atrovato atrovato force-pushed the z2m-contact-sensor branch from 0f764bd to 98f01b7 Compare May 7, 2022 12:50
@atrovato atrovato requested a review from Pierre-Gilles May 7, 2022 12:50
@codecov
Copy link

codecov bot commented May 7, 2022

Codecov Report

Merging #1517 (a64d493) into master (7e0b135) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1517   +/-   ##
=======================================
  Coverage   96.58%   96.58%           
=======================================
  Files         617      617           
  Lines        8935     8940    +5     
=======================================
+ Hits         8630     8635    +5     
  Misses        305      305           
Impacted Files Coverage Δ
server/services/zigbee2mqtt/exposes/binaryType.js 100.00% <100.00%> (ø)

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 7e0b135...a64d493. Read the comment docs.

Copy link
Contributor

@Pierre-Gilles Pierre-Gilles left a comment

Choose a reason for hiding this comment

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

PR seems good, can you build a Docker image to get some reviews on it, then post the image here: https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/91?u=pierre-gilles

@atrovato atrovato force-pushed the z2m-contact-sensor branch from 98f01b7 to a64d493 Compare May 11, 2022 18:18
@atrovato
Copy link
Contributor Author

Looks great now!!

https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/95?u=alextrovato

Copy link
Contributor

@Pierre-Gilles Pierre-Gilles left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! Merging this right now :)

@Pierre-Gilles Pierre-Gilles merged commit 1e3bcc2 into GladysAssistant:master May 13, 2022
@relativeci
Copy link

relativeci bot commented May 13, 2022

Job #284: Bundle Size — 6.83MB (0%).

1e3bcc2 vs 7e0b135

No changes


View Job #284 report on app.relative-ci.com

@atrovato atrovato deleted the z2m-contact-sensor branch May 22, 2022 18:14
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