-
Notifications
You must be signed in to change notification settings - Fork 0
fix: improve error handling in config flow for unexpected exceptions #8
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
Conversation
Preview Release CreatedA preview release has been created for testing this PR. Version: How to Test
Or install directly via HACS:WARNING: This is a preview release - do not use in production! Once testing is complete and approved, this PR can be merged for an official release. |
Preview Release CreatedA preview release has been created for testing this PR. Version: How to Test
Or install directly via HACS:WARNING: This is a preview release - do not use in production! Once testing is complete and approved, this PR can be merged for an official release. |
Preview Release CreatedA preview release has been created for testing this PR. Version: How to Test
Or install directly via HACS:WARNING: This is a preview release - do not use in production! Once testing is complete and approved, this PR can be merged for an official release. |
Preview Release CreatedA preview release has been created for testing this PR. Version: How to Test
Or install directly via HACS:WARNING: This is a preview release - do not use in production! Once testing is complete and approved, this PR can be merged for an official release. |
Preview Release CreatedA preview release has been created for testing this PR. Version: How to Test
Or install directly via HACS:WARNING: This is a preview release - do not use in production! Once testing is complete and approved, this PR can be merged for an official release. |
|
🧹 Cleaned up 5 preview release(s) for this PR. |
This pull request adds translation support and refactors sensor state handling for the MiniBrew integration. The main changes include introducing translation files for user-facing strings, updating sensor classes to use translation keys, and standardizing sensor state values for consistency and localization.
Translation and Localization Support
strings.jsonandtranslations/en.jsonto provide localized names and states for configuration steps, options, errors, and all sensor entities. This enables user-facing strings to be easily translated and managed.Sensor Refactoring and Standardization
Updated all sensor classes in
sensor.pyto include an_attr_translation_keyattribute, linking each sensor to its translation entry for name and state. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]Refactored sensor state values to use standardized, lower-case identifiers (e.g.,
"online","offline","updating","not_updating","action_required","no_action_required","unknown") instead of human-readable strings. This allows the frontend to display localized states based on translations. [1] [2] [3] [4] [5] [6] [7] [8] [9]Error Handling Improvements
These changes collectively enhance internationalization, maintainability, and user experience for the MiniBrew integration.