Add descriptions for sensor statistics repair issues#167464
Conversation
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Pull request overview
This PR fixes translation validation failures in the Sensor integration by adding missing repair issue descriptions for non-fixable statistics-related issues.
Changes:
- Add non-empty
descriptionstrings for theunits_changed,state_class_removed, andmean_type_changedrepair issues. - Use existing placeholders passed from
homeassistant/components/sensor/recorder.pyto populate the new descriptions.
Show a summary per file
| File | Description |
|---|---|
homeassistant/components/sensor/strings.json |
Adds repair issue descriptions so translation compilation/validation includes required keys for non-fixable issues. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
The units_changed, state_class_removed, and mean_type_changed issues were created with empty descriptions, but non-fixable issues require a description translation. This caused test failures in the translation validation framework.
f26573e to
3275f24
Compare
There was a problem hiding this comment.
Pull request overview
This PR fixes translation validation failures in the Sensor integration by adding missing description strings for non-fixable statistics-related repair issues.
Changes:
- Add description text for the
mean_type_changedissue. - Add description text for the
state_class_removedissue. - Add description text for the
units_changedissue, using existing placeholders provided byrecorder.py.
Show a summary per file
| File | Description |
|---|---|
homeassistant/components/sensor/strings.json |
Adds non-empty issue descriptions so translation compilation/validation succeeds for non-fixable repair issues. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 0 new
arturpragacz
left a comment
There was a problem hiding this comment.
It is not clear why this would be needed.
Similar to #167463.
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
|
Better solution: #167928. |
Proposed change
Three sensor repair issues (
units_changed,state_class_removed,mean_type_changed) have emptydescriptionfields instrings.json. All three are created withis_fixable=False, which requires a description translation. Empty strings get stripped during translation compilation, so the keys are missing and the translation validation fails.Added descriptions for each using the placeholders already passed by
recorder.py.Type of change
Additional information
Checklist
ruff format homeassistant tests)To help with the load of incoming pull requests: