mirror of
https://github.com/esphome/esphome.git
synced 2025-10-22 03:33:52 +01:00
[core] Fix IndexError when OTA devices cannot be resolved
This commit is contained in:
@@ -185,7 +185,9 @@ def choose_upload_log_host(
|
|||||||
else:
|
else:
|
||||||
resolved.append(device)
|
resolved.append(device)
|
||||||
if not resolved:
|
if not resolved:
|
||||||
_LOGGER.error("All specified devices: %s could not be resolved.", defaults)
|
raise EsphomeError(
|
||||||
|
f"All specified devices {defaults} could not be resolved. Is the device connected to the network?"
|
||||||
|
)
|
||||||
return resolved
|
return resolved
|
||||||
|
|
||||||
# No devices specified, show interactive chooser
|
# No devices specified, show interactive chooser
|
||||||
|
Reference in New Issue
Block a user