mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
Set "CONF_" CI counter to fail on 3 or more definitions (#6668)
This commit is contained in:
@@ -476,7 +476,7 @@ def lint_no_byte_datatype(fname, match):
|
||||
def lint_constants_usage():
|
||||
errs = []
|
||||
for constant, uses in CONSTANTS_USES.items():
|
||||
if len(uses) < 4:
|
||||
if len(uses) < 3:
|
||||
continue
|
||||
errs.append(
|
||||
f"Constant {highlight(constant)} is defined in {len(uses)} files. Please move all definitions of the "
|
||||
|
Reference in New Issue
Block a user