From 37360bb7973df123d69c3eb46200643b50314cc7 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Fri, 12 Oct 2018 09:48:55 +0200 Subject: [PATCH] Log esphomelib version and compilation time on boot (#159) --- esphomeyaml/core_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphomeyaml/core_config.py b/esphomeyaml/core_config.py index b935da47f7..bed7ee780d 100644 --- a/esphomeyaml/core_config.py +++ b/esphomeyaml/core_config.py @@ -15,7 +15,7 @@ from esphomeyaml.const import CONF_ARDUINO_VERSION, CONF_BOARD, CONF_BOARD_FLASH ARDUINO_VERSION_ESP32_DEV from esphomeyaml.core import ESPHomeYAMLError from esphomeyaml.helpers import App, NoArg, Pvariable, add, const_char_p, esphomelib_ns, \ - relative_path + relative_path, RawExpression _LOGGER = logging.getLogger(__name__) @@ -252,3 +252,5 @@ def to_code(config): automation.build_automation(trigger, NoArg, conf) update_esphomelib_repo(config) + + add(App.set_compilation_datetime(RawExpression('__DATE__ ", " __TIME__')))