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:
parent
f2b6a0909a
commit
e234557cf3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user