mirror of
https://github.com/esphome/esphome.git
synced 2026-09-28 07:20:24 +00:00
@@ -514,15 +514,15 @@ def get_download_types(storage_json: StorageJSON) -> list[dict[str, str]]:
|
||||
"download": f"{storage_json.name}.hex",
|
||||
},
|
||||
]
|
||||
if (build_dir / APP_IMAGE_PATH).is_file():
|
||||
types += [
|
||||
{
|
||||
"title": "App update package",
|
||||
"description": "For flashing via mcumgr-web using BLE or smpclient using USB CDC.",
|
||||
"file": APP_IMAGE_PATH,
|
||||
"download": f"app-{storage_json.name}.img",
|
||||
},
|
||||
]
|
||||
if (build_dir / APP_IMAGE_PATH).is_file():
|
||||
types += [
|
||||
{
|
||||
"title": "App update package",
|
||||
"description": "For flashing via mcumgr-web using BLE or smpclient using USB CDC.",
|
||||
"file": APP_IMAGE_PATH,
|
||||
"download": f"app-{storage_json.name}.img",
|
||||
},
|
||||
]
|
||||
|
||||
return types
|
||||
|
||||
|
||||
Reference in New Issue
Block a user