mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Fix upload_speed must be str
This commit is contained in:
		| @@ -163,7 +163,7 @@ def compile_program(args, config): | |||||||
| def upload_using_esptool(config, port): | def upload_using_esptool(config, port): | ||||||
|     path = CORE.firmware_bin |     path = CORE.firmware_bin | ||||||
|     cmd = ['esptool.py', '--before', 'default_reset', '--after', 'hard_reset', |     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] |            '--chip', 'esp8266', '--port', port, 'write_flash', '0x0', path] | ||||||
|  |  | ||||||
|     if os.environ.get('ESPHOME_USE_SUBPROCESS') is None: |     if os.environ.get('ESPHOME_USE_SUBPROCESS') is None: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user