diff --git a/esphome/platformio_api.py b/esphome/platformio_api.py index 59f5bf20ae..29bfe7d2e6 100644 --- a/esphome/platformio_api.py +++ b/esphome/platformio_api.py @@ -98,7 +98,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).decode() + stdout = run_platformio_cli_run(config, False, *args, capture_stdout=True) match = re.search(r'{\s*".*}', stdout) if match is None: _LOGGER.debug("Could not match IDEData for %s", stdout)