mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 23:52:28 +01:00
preen
This commit is contained in:
@@ -507,19 +507,17 @@ def command_compile(args: ArgsProtocol, config: ConfigType) -> int | None:
|
|||||||
|
|
||||||
|
|
||||||
def command_upload(args: ArgsProtocol, config: ConfigType) -> int | None:
|
def command_upload(args: ArgsProtocol, config: ConfigType) -> int | None:
|
||||||
devices: list[str] = args.device or []
|
# No devices specified, use the interactive chooser
|
||||||
if not devices:
|
devices: list[str] = args.device or [
|
||||||
# No devices specified, use the interactive chooser
|
choose_upload_log_host(
|
||||||
devices = [
|
default=None,
|
||||||
choose_upload_log_host(
|
check_default=None,
|
||||||
default=None,
|
show_ota=True,
|
||||||
check_default=None,
|
show_mqtt=False,
|
||||||
show_ota=True,
|
show_api=False,
|
||||||
show_mqtt=False,
|
purpose="uploading",
|
||||||
show_api=False,
|
)
|
||||||
purpose="uploading",
|
]
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
# Try each device until one succeeds
|
# Try each device until one succeeds
|
||||||
for device in devices:
|
for device in devices:
|
||||||
|
Reference in New Issue
Block a user