mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 05:54:56 +01:00
fix esphome better error out (#843)
* fix esphome better error out * lint * not in then
This commit is contained in:
parent
367ae906c3
commit
9580b13b9f
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,10 @@ def upload_program(config, args, host):
|
|||
|
||||
from esphome import espota2
|
||||
|
||||
if CONF_OTA not in config:
|
||||
raise EsphomeError("Cannot upload Over the Air as the config does not include the ota: "
|
||||
"component")
|
||||
|
||||
ota_conf = config[CONF_OTA]
|
||||
remote_port = ota_conf[CONF_PORT]
|
||||
password = ota_conf[CONF_PASSWORD]
|
||||
|
|
Loading…
Reference in a new issue