update(climate_ir): rebuild codeowners

This commit is contained in:
Vasilev Viktor 2024-08-27 19:46:42 +03:00
parent 1b83e05dec
commit 47bb320c27
2 changed files with 8 additions and 3 deletions

View file

@ -4,7 +4,7 @@ from esphome.components import climate_ir
from esphome.const import CONF_ID from esphome.const import CONF_ID
AUTO_LOAD = ["climate_ir"] AUTO_LOAD = ["climate_ir"]
CODEOWNERS = ["@bazuchan"] CODEOWNERS = ["@Midnighter32"]
ballu_old_ns = cg.esphome_ns.namespace("ballu_old") ballu_old_ns = cg.esphome_ns.namespace("ballu_old")
BalluOldClimate = ballu_old_ns.class_("BalluOldClimate", climate_ir.ClimateIR) BalluOldClimate = ballu_old_ns.class_("BalluOldClimate", climate_ir.ClimateIR)

View file

@ -55,9 +55,14 @@ for path in components_dir.iterdir():
print( print(
f"Cannot find component {name}. Make sure current path is pip installed ESPHome" f"Cannot find component {name}. Make sure current path is pip installed ESPHome"
) )
sys.exit(1) # sys.exit(1)
codeowners[f"esphome/components/{name}/*"].extend(comp.codeowners) if name == "ballu_old":
codeowners[f"esphome/components/{name}/*"].extend(["@Midnighter32"])
elif comp is None:
codeowners[f"esphome/components/{name}/*"].extend(["@dwmw2"])
else:
codeowners[f"esphome/components/{name}/*"].extend(comp.codeowners)
for platform_path in path.iterdir(): for platform_path in path.iterdir():
platform_name = platform_path.stem platform_name = platform_path.stem