-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Merge devices, keep name and room #1575
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1575 +/- ##
=======================================
Coverage 97.56% 97.56%
=======================================
Files 653 653
Lines 9932 9946 +14
=======================================
+ Hits 9690 9704 +14
Misses 242 242
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@atrovato tested right now Edited feature name on aqara door sensor. ( With needed update on discover page ) After update all feature name revert to default. |
I'm not sure to understand your test. What did you do to get the update button available? |
I've some device that need update ( door sensor device temperature) So I edited feature name before update in zigbee2mqtt integration. After update my custom features name are gone. |
In zigbee2mqqt, the z2m name is a part of the external_id (which is a bad practice), and for the "difference" calculation, with are based on this external_id. So in your case, we don't update a feature, but we detect the deletion of a feature, and a new feature... |
4a5860b
to
5e1abad
Compare
@atrovato ok I understand |
af4712b
to
f38b55d
Compare
@atrovato Is it ready to review/merge? Tests are good? |
@Pierre-Gilles I just rebase on master. |
f38b55d
to
ab686ad
Compare
@atrovato In what case can we override the feature category ? |
In Tasmota, you can change the default "swith" category to "light", editing stored device. |
@VonOx Is this working on your side in the end? I don't see any message of you saying that it works |
@Pierre-Gilles My previous test-case was not suitable because of external-id change. It doesn't apply. |
@VonOx Ok. Can you try it then ? :) |
I'm on. |
ab686ad
to
709b055
Compare
I just rebase from master to avoid any side effects. |
d4a075d
to
e74e78d
Compare
e74e78d
to
f50bd23
Compare
f50bd23
to
3459438
Compare
3459438
to
ae8e768
Compare
ae8e768
to
c07ac0b
Compare
3c08dde
to
86aecc7
Compare
I do, but as I am the developer, it has no value ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then it's ok for me, I trust you! :)
We cannot wait forever for testers ^^
Thanks for your work on this 🙏
Job #1203: Bundle Size — 7.21MiB (0%).
Metrics (no changes)
Total size by type (no changes)
|
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:
npm test
on both front/server)npm run eslint
on both front/server)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)[ ] 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
Fixes #1573
With z2m and Tasmota services, Gladys allows to update stored devices with discovered once. But it erase manually defined room and names.
This PR allows to merge existing device and newly discovered device, keeping some already stored attributes.