diff --git a/esphome/components/ballu_old/climate.py b/esphome/components/ballu_old/climate.py index f1d2e51b4d..816f6c1506 100644 --- a/esphome/components/ballu_old/climate.py +++ b/esphome/components/ballu_old/climate.py @@ -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) diff --git a/script/build_codeowners.py b/script/build_codeowners.py index db34ad7702..b4b705ff3e 100755 --- a/script/build_codeowners.py +++ b/script/build_codeowners.py @@ -55,9 +55,14 @@ 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) - 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(): platform_name = platform_path.stem