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
AUTO_LOAD = ["climate_ir"]
CODEOWNERS = ["@bazuchan"]
CODEOWNERS = ["@Midnighter32"]
ballu_old_ns = cg.esphome_ns.namespace("ballu_old")
BalluOldClimate = ballu_old_ns.class_("BalluOldClimate", climate_ir.ClimateIR)

View file

@ -55,8 +55,13 @@ for path in components_dir.iterdir():
print(
f"Cannot find component {name}. Make sure current path is pip installed ESPHome"
)
sys.exit(1)
# sys.exit(1)
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():