mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
patch esphome cli to skip mqtt based device discovery if --device option is specified (#6371)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
9ea442f328
commit
e7c1ddb452
1 changed files with 2 additions and 1 deletions
|
@ -343,9 +343,10 @@ def upload_program(config, args, host):
|
|||
password = ota_conf.get(CONF_PASSWORD, "")
|
||||
|
||||
if (
|
||||
not is_ip_address(CORE.address)
|
||||
not is_ip_address(CORE.address) # pylint: disable=too-many-boolean-expressions
|
||||
and (get_port_type(host) == "MQTT" or config[CONF_MDNS][CONF_DISABLED])
|
||||
and CONF_MQTT in config
|
||||
and (not args.device or args.device == "MQTT")
|
||||
):
|
||||
from esphome import mqtt
|
||||
|
||||
|
|
Loading…
Reference in a new issue