1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

[CI] Print more info for when consts are duplicated (#10166)

This commit is contained in:
Jesse Hills
2025-08-11 09:53:40 +12:00
committed by GitHub
parent 5a8f722316
commit 2fc0a11596

View File

@@ -500,7 +500,8 @@ def lint_constants_usage():
continue
errs.append(
f"Constant {highlight(constant)} is defined in {len(uses)} files. Please move all definitions of the "
f"constant to const.py (Uses: {', '.join(uses)})"
f"constant to const.py (Uses: {', '.join(uses)}) in a separate PR. "
"See https://developers.esphome.io/contributing/code/#python"
)
return errs