def compile_program(args, config): from esphome import platformio_api _LOGGER.info("Compiling app...") rc = platformio_api.run_compile(config, CORE.verbose) if rc != 0: return rc idedata = platformio_api.get_idedata(config) return 0 if idedata is not None else 1
def compile_program(args, config): _LOGGER.info("Compiling app...") rc = platformio_api.run_compile(config, args.verbose) if rc != 0 and CORE.is_dev_esphome_core_version and not is_dev_esphome_version( ): _LOGGER.warning( "You're using 'esphome_core_version: dev' but not using the " "dev version of the ESPHome tool.") _LOGGER.warning( "Expect compile errors if these versions are out of sync.") _LOGGER.warning( "Please install the dev version of ESPHome too when using " "'esphome_core_version: dev'.") _LOGGER.warning(" - Hass.io: Install 'ESPHome (dev)' addon") _LOGGER.warning( " - Docker: docker run [...] esphome/esphome:dev [...]") _LOGGER.warning( " - PIP: pip install -U https://github.com/esphome/esphome/archive/dev.zip" ) return rc
def compile_program(args, config): from esphome import platformio_api _LOGGER.info("Compiling app...") return platformio_api.run_compile(config, CORE.verbose)
def compile_program(args, config): _LOGGER.info("Compiling app...") rc = platformio_api.run_compile(config, args.verbose) return rc