mirror of
https://github.com/esphome/esphome.git
synced 2025-04-06 10:50: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
|
return 1 # Unknown target platform
|
||||||
|
|
||||||
ota_conf = {}
|
ota_conf = {}
|
||||||
if CONF_OTA in config:
|
if ota := config.get(CONF_OTA):
|
||||||
for ota_item in config.get(CONF_OTA):
|
for ota_item in ota:
|
||||||
if ota_item[CONF_PLATFORM] == CONF_ESPHOME:
|
if ota_item[CONF_PLATFORM] == CONF_ESPHOME:
|
||||||
ota_conf = ota_item
|
ota_conf = ota_item
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user