Skip to content

Commit

Permalink
Add API component to logging error message (esphome#1062)
Browse files Browse the repository at this point in the history
* Add API component to logging error message

* lint

Co-authored-by: Guillermo Ruffino <[email protected]>
  • Loading branch information
JeffResc and glmnet authored Jun 15, 2020
1 parent 0bb81e5 commit 35078fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esphome/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def get_serial_ports():
def choose_prompt(options):
if not options:
raise EsphomeError("Found no valid options for upload/logging, please make sure relevant "
"sections (ota, mqtt, ...) are in your configuration and/or the device "
"is plugged in.")
"sections (ota, api, mqtt, ...) are in your configuration and/or the "
"device is plugged in.")

if len(options) == 1:
return options[0][1]
Expand Down

0 comments on commit 35078fd

Please sign in to comment.