1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00

Support for Python 3 (#702)

* Support for Python 3

* Add later Python releases

* Remove Python 3.6

* Re-enable Python 2.7

* Remove platformio-core zip archive

* Re-enable Python 2.7

* Fixes for python 3

Co-Authored-By: C W <fake-name@users.noreply.github.com>
This commit is contained in:
Fabian Affolter
2019-10-18 20:21:16 +05:30
committed by Otto Winter
parent 1bf55c130b
commit 7a43231c43
3 changed files with 13 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import re
import subprocess
from esphome.core import CORE
from esphome.py_compat import text_type, decode_text
from esphome.util import run_external_command, run_external_process
_LOGGER = logging.getLogger(__name__)
@@ -72,6 +73,7 @@ def run_upload(config, verbose, port):
def run_idedata(config):
args = ['-t', 'idedata']
stdout = run_platformio_cli_run(config, False, *args, capture_stdout=True)
stdout = decode_text(stdout)
match = re.search(r'{.*}', stdout)
if match is None:
return IDEData(None)