mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
Toggle Auto-Update Check With Environment Variable (#292)
This commit is contained in:
parent
219201fe49
commit
3417f6dfbd
@ -151,9 +151,12 @@ def write_cpp(config):
|
|||||||
|
|
||||||
def compile_program(args, config):
|
def compile_program(args, config):
|
||||||
_LOGGER.info("Compiling app...")
|
_LOGGER.info("Compiling app...")
|
||||||
thread = start_update_check_thread(esphomeyaml_storage_path(CORE.config_dir))
|
update_check = not os.getenv('ESPHOMEYAML_NO_UPDATE_CHECK', False)
|
||||||
|
if update_check:
|
||||||
|
thread = start_update_check_thread(esphomeyaml_storage_path(CORE.config_dir))
|
||||||
rc = platformio_api.run_compile(config, args.verbose)
|
rc = platformio_api.run_compile(config, args.verbose)
|
||||||
thread.join()
|
if update_check:
|
||||||
|
thread.join()
|
||||||
return rc
|
return rc
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user