Skip to content

Commit

Permalink
yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardtfn committed Nov 21, 2024
1 parent ee9cd00 commit 421a8de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 4 additions & 2 deletions esphome/nspanel_esphome_core_boot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ script:
- lambda: |-
set_variable_value->execute("brightness_dim", static_cast<uint8_t>(display_dim_brightness->state));
set_variable_value->execute("brightness", static_cast<uint8_t>(display_brightness->state));
set_component_value->execute(${PAGE_ID_SETTINGS}, "dimslider", static_cast<uint8_t>(display_dim_brightness->state));
set_component_value->execute(${PAGE_ID_SETTINGS}, "brightslider", static_cast<uint8_t>(display_brightness->state));
set_component_value->execute(${PAGE_ID_SETTINGS}, "dimslider",
static_cast<uint8_t>(display_dim_brightness->state));
set_component_value->execute(${PAGE_ID_SETTINGS}, "brightslider",
static_cast<uint8_t>(display_brightness->state));
set_brightness->execute(display_brightness->state);
boot_progress->execute(${BOOT_STEP_BOOT}, "Boot");
boot_event->execute();
Expand Down
3 changes: 2 additions & 1 deletion esphome/nspanel_esphome_core_page_alarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ script:
state_is_current: bool
then:
- lambda: |-
display_wrapped_text->execute(${PAGE_ID_ALARM}, ("bt_" + button_name + "_text").c_str(), button_text.c_str(), 10);
display_wrapped_text->execute(${PAGE_ID_ALARM}, ("bt_" + button_name + "_text").c_str(),
button_text.c_str(), 10);
if (is_feature_supported) {
set_component_pic->execute(${PAGE_ID_ALARM}, ("bt_" + button_name + "_pic").c_str(),
state_is_current ? 43 : 42);
Expand Down
7 changes: 4 additions & 3 deletions esphome/nspanel_esphome_core_page_home.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ script:
std::string time_format_str = process_time_format(id(mui_time_format).c_str(), id(time_provider).now().hour,
id(mui_meridiem_am).c_str(), id(mui_meridiem_pm).c_str());
std::string meridiem_text = (id(time_provider).now().hour<12) ? id(mui_meridiem_am) : id(mui_meridiem_pm);
set_component_text->execute(${PAGE_ID_HOME}, "meridiem", (time_format_str.find("%p") != std::string::npos) ?
meridiem_text.c_str() : " ");
set_component_text->execute(${PAGE_ID_HOME}, "time", id(time_provider).now().strftime(time_format_str).c_str());
set_component_text->execute(${PAGE_ID_HOME}, "meridiem",
(time_format_str.find("%p") != std::string::npos) ? meridiem_text.c_str() : " ");
set_component_text->execute(${PAGE_ID_HOME}, "time",
id(time_provider).now().strftime(time_format_str).c_str());
- id: !extend stop_all
then:
Expand Down
3 changes: 2 additions & 1 deletion esphome/nspanel_esphome_core_versioning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ script:
- lambda: |-
if (component == "version_blueprint") {
id(version_blueprint) = val;
set_component_text->execute(${PAGE_ID_BOOT}, "ver_blueprint", ("Blueprint: " + id(version_blueprint)).c_str());
set_component_text->execute(${PAGE_ID_BOOT}, "ver_blueprint",
("Blueprint: " + id(version_blueprint)).c_str());
ESP_LOGI("script.set_var_string", "Blueprint version: %s", id(version_blueprint).c_str());
check_versions->execute();
}
Expand Down

0 comments on commit 421a8de

Please sign in to comment.