mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-22 21:58:29 +02:00
Cleanup dashboard JS (#491)
* Cleanup dashboard JS * Add vscode * Save start_mark/end_mark * Updates * Updates * Remove need for cv.nameable It's a bit hacky but removes so much bloat from integrations * Add enum helper * Document APIs, and Improvements * Fixes * Fixes * Update PULL_REQUEST_TEMPLATE.md * Updates * Updates * Updates
This commit is contained in:
@@ -29,7 +29,7 @@ bool ESPPreferenceObject::load_() {
|
||||
|
||||
bool valid = this->data_[this->length_words_] == this->calculate_crc_();
|
||||
|
||||
ESP_LOGVV(TAG, "LOAD %zu: valid=%s, 0=0x%08X 1=0x%08X (Type=%u, CRC=0x%08X)", this->rtc_offset_, // NOLINT
|
||||
ESP_LOGVV(TAG, "LOAD %u: valid=%s, 0=0x%08X 1=0x%08X (Type=%u, CRC=0x%08X)", this->rtc_offset_, // NOLINT
|
||||
YESNO(valid), this->data_[0], this->data_[1], this->type_, this->calculate_crc_());
|
||||
return valid;
|
||||
}
|
||||
@@ -42,7 +42,7 @@ bool ESPPreferenceObject::save_() {
|
||||
this->data_[this->length_words_] = this->calculate_crc_();
|
||||
if (!this->save_internal_())
|
||||
return false;
|
||||
ESP_LOGVV(TAG, "SAVE %zu: 0=0x%08X 1=0x%08X (Type=%u, CRC=0x%08X)", this->rtc_offset_, // NOLINT
|
||||
ESP_LOGVV(TAG, "SAVE %u: 0=0x%08X 1=0x%08X (Type=%u, CRC=0x%08X)", this->rtc_offset_, // NOLINT
|
||||
this->data_[0], this->data_[1], this->type_, this->calculate_crc_());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user