mirror of
https://github.com/esphome/esphome.git
synced 2025-09-24 06:02:21 +01:00
A wild walrus appeared
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user