Address PR review comments: localize error messages, fix deprecated method, use spacing tokens #28246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking change
Proposed change
Addresses PR review comments from #28245:
hass.localize()calls insupervisor-app-audio.tsandsupervisor-app-info.ts.substr()with.substring()insupervisor-app.ts8pxwithvar(--ha-space-2)insupervisor-apps-style.tsfailed_to_load_hardware,failed_to_save, andvalidate_configtoen.jsonType of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Note
Localizes error messages in app audio/info views, replaces deprecated substr with substring, standardizes spacing via tokens, and adds required translation keys.
config/supervisor-app-audio.tsandinfo/supervisor-app-info.tsusinghass.localize.translations/en.jsonforaudio.failed_to_load_hardware,audio.failed_to_save, andaction_error.validate_config.substrwithsubstringinutil/supervisor-app.ts(extractChangelog).var(--ha-space-2)instead of hardcoded8pxinresources/supervisor-apps-style.ts.Written by Cursor Bugbot for commit 1430e32. This will update automatically on new commits. Configure here.