diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 0bc97412bc0..4e75fa6e33e 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -326,7 +326,7 @@ def generate_and_validate(config: Config) -> str: config.add_error("mypy_config", f"Module '{module} doesn't exist") # Don't generate mypy.ini if there're errors found because it will likely crash. - if config.errors: + if any(not err.fixable for err in config.errors): return "" mypy_config = configparser.ConfigParser()