1
0
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 ()

This commit is contained in:
Jesse Hills
2024-05-05 17:32:47 +12:00
committed by GitHub
parent c7c0d97a5e
commit ccbf5148aa
55 changed files with 95 additions and 81 deletions
esphome
components
ade7880
ade7953_base
at581x
bl0940
bme680_bsec
cs5460a
daikin_brc
dfrobot_sen0395
emc2101
ens160
esp32_ble
esp32_camera
graphical_display_menu
haier
hmc5883l
inkplate6
kmeteriso
ld2410
ld2420
binary_sensor
button
mcp3008
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
const.py
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 "