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

[core] Fix regression from #10654 (#11248)

This commit is contained in:
Stuart Parmenter
2025-10-14 20:57:47 -07:00
committed by GitHub
parent 6e2088f836
commit fedfda6c29

View File

@@ -501,7 +501,7 @@ 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)}) in a separate PR. "
f"constant to const.py (Uses: {', '.join(str(u) for u in uses)}) in a separate PR. "
"See https://developers.esphome.io/contributing/code/#python"
)
return errs