From 486bafd009addeb0b5789be1f4f308396d00d8e2 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Mon, 1 Jul 2019 15:11:11 +0200 Subject: [PATCH] Fix upload_speed must be str --- esphome/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/__main__.py b/esphome/__main__.py index 3549686d01..05de49e8d0 100644 --- a/esphome/__main__.py +++ b/esphome/__main__.py @@ -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: