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

Allow setting creator project name and version into code (#1872)

This commit is contained in:
Jesse Hills
2021-06-09 13:04:00 +12:00
committed by GitHub
parent b80f3fdec9
commit 5cf18235e3
9 changed files with 113 additions and 51 deletions

View File

@@ -103,6 +103,9 @@ void Application::loop() {
if (this->dump_config_at_ >= 0 && this->dump_config_at_ < this->components_.size()) {
if (this->dump_config_at_ == 0) {
ESP_LOGI(TAG, "ESPHome version " ESPHOME_VERSION " compiled on %s", this->compilation_time_.c_str());
#ifdef ESPHOME_PROJECT_NAME
ESP_LOGI(TAG, "Project " ESPHOME_PROJECT_NAME " version " ESPHOME_PROJECT_VERSION);
#endif
}
this->components_[this->dump_config_at_]->dump_config();