From 1161bfcc93410a3594fdc4cce97ca5ede56a784c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 31 Jul 2025 19:35:49 -1000 Subject: [PATCH] preen --- esphome/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/__main__.py b/esphome/__main__.py index 54e3529096..3f17cd57cf 100644 --- a/esphome/__main__.py +++ b/esphome/__main__.py @@ -341,7 +341,7 @@ def check_permissions(port): ) -def upload_program(config, args, host): +def upload_program(config, args, host: str): try: module = importlib.import_module("esphome.components." + CORE.target_platform) if getattr(module, "upload_program")(config, args, host): @@ -381,7 +381,7 @@ def upload_program(config, args, host): # Check if we should use MQTT for address resolution # This happens when no device was specified, or the current host is "MQTT"/"OTA" - devices = args.device or [] + devices: list[str] = args.device or [] if ( CONF_MQTT in config # pylint: disable=too-many-boolean-expressions and (not devices or host in ("MQTT", "OTA")) @@ -486,7 +486,7 @@ def command_compile(args, config): def command_upload(args, config) -> int: - devices = args.device or [] + devices: list[str] = args.device or [] if not devices: # No devices specified, use the interactive chooser devices = [