From 421a8de817f5dd18e4842234860065b043fac4a6 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 21 Nov 2024 07:35:06 +0100 Subject: [PATCH] yamllint --- esphome/nspanel_esphome_core_boot.yaml | 6 ++++-- esphome/nspanel_esphome_core_page_alarm.yaml | 3 ++- esphome/nspanel_esphome_core_page_home.yaml | 7 ++++--- esphome/nspanel_esphome_core_versioning.yaml | 3 ++- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/esphome/nspanel_esphome_core_boot.yaml b/esphome/nspanel_esphome_core_boot.yaml index 9edf12e6..17fc91e7 100644 --- a/esphome/nspanel_esphome_core_boot.yaml +++ b/esphome/nspanel_esphome_core_boot.yaml @@ -161,8 +161,10 @@ script: - lambda: |- set_variable_value->execute("brightness_dim", static_cast(display_dim_brightness->state)); set_variable_value->execute("brightness", static_cast(display_brightness->state)); - set_component_value->execute(${PAGE_ID_SETTINGS}, "dimslider", static_cast(display_dim_brightness->state)); - set_component_value->execute(${PAGE_ID_SETTINGS}, "brightslider", static_cast(display_brightness->state)); + set_component_value->execute(${PAGE_ID_SETTINGS}, "dimslider", + static_cast(display_dim_brightness->state)); + set_component_value->execute(${PAGE_ID_SETTINGS}, "brightslider", + static_cast(display_brightness->state)); set_brightness->execute(display_brightness->state); boot_progress->execute(${BOOT_STEP_BOOT}, "Boot"); boot_event->execute(); diff --git a/esphome/nspanel_esphome_core_page_alarm.yaml b/esphome/nspanel_esphome_core_page_alarm.yaml index d7ce3abb..c14c151f 100644 --- a/esphome/nspanel_esphome_core_page_alarm.yaml +++ b/esphome/nspanel_esphome_core_page_alarm.yaml @@ -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); diff --git a/esphome/nspanel_esphome_core_page_home.yaml b/esphome/nspanel_esphome_core_page_home.yaml index 33d55f89..90a320c3 100644 --- a/esphome/nspanel_esphome_core_page_home.yaml +++ b/esphome/nspanel_esphome_core_page_home.yaml @@ -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: diff --git a/esphome/nspanel_esphome_core_versioning.yaml b/esphome/nspanel_esphome_core_versioning.yaml index c8dbc8ba..6ef48e40 100644 --- a/esphome/nspanel_esphome_core_versioning.yaml +++ b/esphome/nspanel_esphome_core_versioning.yaml @@ -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(); }