From c056bb317767cee18b09a5bb9db4736e1775346f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 12 May 2026 17:49:03 -0500 Subject: [PATCH] [core] Type-annotate config local in dispatcher --- esphome/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/__main__.py b/esphome/__main__.py index d5a9b69833..b492aa67c1 100644 --- a/esphome/__main__.py +++ b/esphome/__main__.py @@ -2423,7 +2423,7 @@ def run_esphome(argv): # last compile wrote. Falls back to read_config when missing/stale. # Skipped when -s overrides are passed, since the cache was written # against the previous substitution set. - config = None + config: ConfigType | None = None if args.command in ("upload", "logs") and not command_line_substitutions: from esphome.compiled_config import load_compiled_config