-
-
Notifications
You must be signed in to change notification settings - Fork 36.4k
Handle unsupported version in WLED #157778
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,13 +1,18 @@ | ||||||
| { | ||||||
| "common": { | ||||||
| "unsupported_version": "The WLED device's firmware version is not supported." | ||||||
| }, | ||||||
| "config": { | ||||||
| "abort": { | ||||||
| "already_configured": "[%key:common::config_flow::abort::already_configured_device%]", | ||||||
| "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", | ||||||
| "reconfigure_successful": "[%key:common::config_flow::abort::reconfigure_successful%]", | ||||||
| "unique_id_mismatch": "MAC address does not match the configured device. Expected to connect to device with MAC: `{expected_mac}`, but connected to device with MAC: `{actual_mac}`. \n\nPlease ensure you reconfigure against the same device." | ||||||
| "unique_id_mismatch": "MAC address does not match the configured device. Expected to connect to device with MAC: `{expected_mac}`, but connected to device with MAC: `{actual_mac}`. \n\nPlease ensure you reconfigure against the same device.", | ||||||
| "unsupported_version": "[%key:component::wled::common::unsupported_version%]" | ||||||
| }, | ||||||
| "error": { | ||||||
| "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]" | ||||||
| "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", | ||||||
| "unsupported_version": "[%key:component::wled::common::unsupported_version%]" | ||||||
| }, | ||||||
| "flow_title": "{name}", | ||||||
| "step": { | ||||||
|
|
@@ -138,6 +143,9 @@ | |||||
| }, | ||||||
| "mac_address_mismatch": { | ||||||
| "message": "MAC address does not match the configured device. Expected to connect to device with MAC: {expected_mac}, but connected to device with MAC: {actual_mac}." | ||||||
| }, | ||||||
| "unsupported_version": { | ||||||
| "message": "The WLED device's firmware version is not supported: {error}" | ||||||
|
||||||
| "message": "The WLED device's firmware version is not supported: {error}" | |
| "message": "The WLED device's firmware version is not supported: {error}. To fix this issue, please update your WLED device to the latest firmware version. You can find update instructions on the WLED website (https://kno.wled.ge/firmware-updates/) or in the WLED app." |
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.
Ideally, I'd like to display the original error message here as well, but I have no idea how to do that. Any ideas?
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.
You can use placeholders, but that isn't meant for big errors tbf
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.
Now that we have this merged, I’m not going to worry about it any further.
Thank you very much for the quick review. It genuinely made me happy to see this change merged so fast. My previous PR for the WLED integration waited several months before it finally got merged, and this time we were even faster than the GitHub copilot.
My next step is the quality scale, since that was one of the missing pieces: #155482