mirror of
https://github.com/esphome/esphome.git
synced 2025-06-27 10:43:10 +01:00
Set "CONF_" CI counter to fail on 3 or more definitions (#6668)
This commit is contained in:
esphome
components
ade7880
ade7953_base
at581x
bl0940
bme680_bsec
cs5460a
daikin_brc
dfrobot_sen0395
emc2101
sensor
ens160
esp32_ble
esp32_camera
graphical_display_menu
haier
hmc5883l
inkplate6
kmeteriso
ld2410
ld2420
mcp3008
sensor
mcp3204
midea
midea_ir
mmc5603
pn532
pn7150
pn7160
power_supply
qmc5883l
resistance
rpi_dpi_rgb
scd30
scd4x
script
seeed_mr24hpc1
sgp30
sgp4x
sim800l
sn74hc595
st7701s
tlc5947
touchscreen
whynter
wifi
wireguard
script
@ -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