mirror of
https://github.com/esphome/esphome.git
synced 2024-11-02 08:40:55 +01:00
Fix upload_speed must be str
This commit is contained in:
parent
341c99b4fa
commit
486bafd009
@ -163,7 +163,7 @@ def compile_program(args, config):
|
||||
def upload_using_esptool(config, port):
|
||||
path = CORE.firmware_bin
|
||||
cmd = ['esptool.py', '--before', 'default_reset', '--after', 'hard_reset',
|
||||
'--baud', config[CONF_ESPHOME][CONF_PLATFORMIO_OPTIONS].get('upload_speed', 115200),
|
||||
'--baud', str(config[CONF_ESPHOME][CONF_PLATFORMIO_OPTIONS].get('upload_speed', 115200)),
|
||||
'--chip', 'esp8266', '--port', port, 'write_flash', '0x0', path]
|
||||
|
||||
if os.environ.get('ESPHOME_USE_SUBPROCESS') is None:
|
||||
|
Loading…
Reference in New Issue
Block a user