mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 08:55:22 +01:00
Add API component to logging error message (#1062)
* Add API component to logging error message * lint Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
parent
0bb81e5b2d
commit
35078fd52f
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ def get_serial_ports():
|
||||||
def choose_prompt(options):
|
def choose_prompt(options):
|
||||||
if not options:
|
if not options:
|
||||||
raise EsphomeError("Found no valid options for upload/logging, please make sure relevant "
|
raise EsphomeError("Found no valid options for upload/logging, please make sure relevant "
|
||||||
"sections (ota, mqtt, ...) are in your configuration and/or the device "
|
"sections (ota, api, mqtt, ...) are in your configuration and/or the "
|
||||||
"is plugged in.")
|
"device is plugged in.")
|
||||||
|
|
||||||
if len(options) == 1:
|
if len(options) == 1:
|
||||||
return options[0][1]
|
return options[0][1]
|
||||||
|
|
Loading…
Reference in a new issue