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

CI Pipeline error on '-1' in translations #95

Open
lein1013 opened this issue Feb 11, 2024 · 0 comments
Open

CI Pipeline error on '-1' in translations #95

lein1013 opened this issue Feb 11, 2024 · 0 comments

Comments

@lein1013
Copy link
Contributor

Describe the bug
hassfest github workflow has some checks on dictionary keys

To Reproduce
see https://github.com/LavermanJJ/home-assistant-solarfocus/actions/runs/7600697204/job/20699227965?pr=92

Integration solarfocus - /github/workspace/custom_components/solarfocus:
Error: R] [TRANSLATIONS] Invalid strings.json: Invalid translation key '-1', need to be [a-z0-9-_]+ and cannot start or end with a hyphen or underscore. for dictionary value @ data['entity']['sensor']['bo_circulation']['state']. Got {'-1': 'Locked', '0': 'Off', '1': 'On'}
Invalid translation key '-1', need to be [a-z0-9-_]+ and cannot start or end with a hyphen or underscore. for dictionary value @ data['entity']['sensor']['bo_single_charge']['state']. Got {'-1': 'Locked', '0': 'Off', '1': 'On'}
Error: R] [TRANSLATIONS] Invalid translations/en.json: Invalid translation key '-1', need to be [a-z0-9-_]+ and cannot start or end with a hyphen or underscore. for dictionary value @ data['entity']['sensor']['bo_circulation']['state']. Got {'-1': 'Locked', '0': 'Off', '1': 'On'}
Invalid translation key '-1', need to be [a-z0-9-_]+ and cannot start or end with a hyphen or underscore. for dictionary value @ data['entity']['sensor']['bo_single_charge']['state']. Got {'-1': 'Locked', '0': 'Off', '1': 'On'}

Error: Process completed with exit code 1.

Expected behavior
CI should give green ligth to merge.

Any way to exclude this files from the checks?

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

No branches or pull requests

1 participant