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

Allow to specify full file name in value reference '!' #14955

Merged
merged 2 commits into from
Nov 13, 2022
Merged

Allow to specify full file name in value reference '!' #14955

merged 2 commits into from
Nov 13, 2022

Conversation

jirutka
Copy link
Contributor

@jirutka jirutka commented Nov 13, 2022

This network_key: '!secret network_key' is really confusing because it looks like a YAML tag named 'secret' and a value "network_key".
When we write network_key: '!secret.yaml network_key' instead, it's a little clearer what's going on. Also, it's more consistent with file references in 'devices' and 'groups'.

This `network_key: '!secret network_key'` is really confusing because
it looks like a YAML tag named 'secret' and a value "network_key".
When we write `network_key: '!secret.yaml network_key'` instead, it's
a little clearer what's going on. Also, it's more consistent with file
references in 'devices' and 'groups'.
@@ -199,7 +199,7 @@ describe('Settings', () => {
mqtt: {
server: '!secret server',
user: '!secret username',
password: '!secret password',
password: '!secret.yaml password',
Copy link
Owner

Choose a reason for hiding this comment

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

Can you leave the old test to ensure this change is backwards compatible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are multiple instances of !secret in this test, all asserted, I changed just one of them to test another variant.

Copy link
Owner

Choose a reason for hiding this comment

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

Missed that, thanks!

@Koenkk Koenkk merged commit a2f8534 into Koenkk:dev Nov 13, 2022
Koenkk added a commit to Koenkk/zigbee2mqtt.io that referenced this pull request Nov 13, 2022
@jirutka jirutka deleted the value-ref-ext branch November 13, 2022 20:23
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.

None yet

2 participants