LavermanJJ / home-assistant-solarfocus

🏡 Solarfocus eco manager touch integration for Home Assistant
Apache License 2.0
14 stars 3 forks source link

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

Open lein1013 opened 5 months ago

lein1013 commented 5 months ago

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?