[core] Fix area/device hash collision validation not running (#15259)

This commit is contained in:
Jonathan Swoboda
2026-03-27 22:22:24 -04:00
committed by GitHub
parent 47774fb644
commit b6abfec82e
5 changed files with 64 additions and 9 deletions

View File

@@ -1006,6 +1006,18 @@ def lint_log_in_header(fname, line, col, content):
)
@lint_content_find_check(
"FINAL_VALIDATE_SCHEMA",
include=["esphome/core/*.py"],
exclude=["esphome/core/entity_helpers.py"],
)
def lint_final_validate_in_core(fname, line, col, content):
return (
"FINAL_VALIDATE_SCHEMA in esphome/core/ is not picked up by the component loader. "
"Use CoreFinalValidateStep in esphome/config.py instead."
)
def main():
colorama.init()