1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-05 18:30:28 +01:00

A wild walrus appeared

This commit is contained in:
Jesse Hills 2024-04-29 10:20:03 +12:00
parent f2b6a0909a
commit e234557cf3
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -332,8 +332,8 @@ def upload_program(config, args, host):
return 1 # Unknown target platform
ota_conf = {}
if CONF_OTA in config:
for ota_item in config.get(CONF_OTA):
if ota := config.get(CONF_OTA):
for ota_item in ota:
if ota_item[CONF_PLATFORM] == CONF_ESPHOME:
ota_conf = ota_item
break