Skip to content

Commit

Permalink
yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardtfn committed Nov 20, 2024
1 parent 2255ce5 commit 8268105
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion esphome/nspanel_esphome_addon_climate_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ script:
1055 : 48631);
#else
set_component_visibility->execute("climate", "button04", false); // Cool
set_component_font_color->execute("climate", "button04",
set_component_font_color->execute("climate", "button04",
thermostat_embedded->mode == climate::CLIMATE_MODE_COOL ?
1055 : 6339);
#endif
Expand Down
1 change: 0 additions & 1 deletion esphome/nspanel_esphome_core_hw_buzzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ substitutions:
tone_boot: "two short:d=4,o=5,b=100:16e6,16e6"
tone_touch_press: "Touch:d=16,o=5,b=180:g"
tone_touch_release: "Release:d=32,o=5,b=180:g,g"
# Ex.
# tone_volume_change: "scale_up:d=32,o=5,b=100:c,c#,d#,e,f#,g#,a#,b"
tone_volume_change: ""

Expand Down
3 changes: 2 additions & 1 deletion esphome/nspanel_esphome_core_page_cover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ script:
const std::string key = json["key"];
if (key == "position") {
const std::string value = json["value"];
ha_call_action->execute("cover.set_cover_position", key.c_str(), value.c_str(), detailed_entity->state.c_str());
ha_call_action->execute("cover.set_cover_position", key.c_str(),
value.c_str(), detailed_entity->state.c_str());
} else
ha_call_action->execute(("cover." + key).c_str(), "", "", detailed_entity->state.c_str());
}
Expand Down
16 changes: 11 additions & 5 deletions esphome/nspanel_esphome_core_page_notification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ substitutions:
api:
id: !extend api_server
actions:
# This action removes any displayed notifications from the screen, helping to keep the user interface clean and focused on its primary functions.
# This action removes any displayed notifications from the screen,
# helping to keep the user interface clean and focused on its primary functions.
- action: notification_clear
then:
- lambda: |-
Expand All @@ -27,14 +28,18 @@ api:
# Displays a notification message on the screen, useful for alerts or informational updates.
- action: notification_show
variables:
label: string # Title or label for the notification, displayed in a prominent format.
message: string # Detailed message or content of the notification. Include `\r` to insert a line break, allowing for custom formatting.
# Title or label for the notification, displayed in a prominent format.
label: string
# Detailed message or content of the notification. Include `\r` to insert a line break,
# allowing for custom formatting.
message: string
then:
- lambda: |-
set_component_visibility->execute("home", "bt_notific", true);
goto_page_id->execute(${PAGE_ID_NOTIFICATION}, true);
set_component_text->execute("notification", "notifi_label", label.c_str());
display_wrapped_text->execute("notification", "notifi_text01", message.c_str(), id(display_mode) == 2 ? 23 : 32);
display_wrapped_text->execute("notification", "notifi_text01",
message.c_str(), id(display_mode) == 2 ? 23 : 32);
notification_label->publish_state(label.c_str());
notification_text->publish_state(message.c_str());
notification_unread->publish_state(true);
Expand Down Expand Up @@ -117,7 +122,8 @@ script:
then:
- lambda: |-
set_component_text->execute("notification", "notifi_label", notification_label->state.c_str());
display_wrapped_text->execute("notification", "notifi_text01", notification_text->state.c_str(), id(display_mode) == 2 ? 23 : 32);
display_wrapped_text->execute("notification", "notifi_text01",
notification_text->state.c_str(), id(display_mode) == 2 ? 23 : 32);
- id: !extend stop_all
then:
Expand Down

0 comments on commit 8268105

Please sign in to comment.