-
-
Notifications
You must be signed in to change notification settings - Fork 865
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
Add support for DeviceType components #742
Add support for DeviceType components #742
Conversation
5eecfc6
to
cdd9d54
Compare
This PR assumes that #729 is merged, until then the build pipelines will fail. |
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.
Thank you for this PR. Just one tiny remark:
Since the examples are mostly our reference documentation, I believe it would be great to have one entry where the following is true and then a comment explaining that the non-template field takes presedence.
… if by mistake name and name_template keys are provided then the normal field takes precedence.
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.
Thanks
1df9b36
to
12753dd
Compare
@tobiasge are we good to merge this and my other 2 PRs ? |
a1ecfce
to
12753dd
Compare
Related Issue: n/a
New Behavior
This PR adds support for all of the DeviceType components like Interfaces, DeviceBays, etc. to the 190_device_type startup script.
Contrast to Current Behavior
Currently there is no support for DeviceType components and there is only startup script that is available to create actual instances of these components is for interfaces.
Discussion: Benefits and Drawbacks
This is backwards compatible. If a user wants to use this feature he only needs to extend his current device_type.yml (examples therein).
Templates are supported just as when adding a component through the UI. Fields that support templating need to be suffixed with _template, e.g. name_template. If by mistake name and name_template keys are provided then the normal field takes precedence.
This PR assumes that #729 is merged.
Changes to the Wiki
n/a
Proposed Release Note Entry
Feature: Add support for device component templates to DeviceType startup script.
Double Check
develop
branch.