mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 17:05:21 +01:00
Fix Upload from Dashboard with MQTT discovery. (#6774)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
4fc2f2284a
commit
7452879fb1
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ def upload_program(config, args, host):
|
||||||
not is_ip_address(CORE.address) # pylint: disable=too-many-boolean-expressions
|
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 (get_port_type(host) == "MQTT" or config[CONF_MDNS][CONF_DISABLED])
|
||||||
and CONF_MQTT in config
|
and CONF_MQTT in config
|
||||||
and (not args.device or args.device == "MQTT")
|
and (not args.device or args.device in ("MQTT", "OTA"))
|
||||||
):
|
):
|
||||||
from esphome import mqtt
|
from esphome import mqtt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue