change notification_show parameter to message

For compatibility with ESPHome 2023.11.

Solves #1247
This commit is contained in:
Edward Firmo
2023-11-11 10:13:17 +01:00
parent 1857be65c2
commit 035ebd64dc
2 changed files with 7 additions and 4 deletions

View File

@@ -364,7 +364,7 @@ api:
- service: notification_show
variables:
label: string
text: string
message: string
then:
- lambda: |-
ESP_LOGV("service.notification_show", "Starting");
@@ -373,10 +373,10 @@ api:
disp1->goto_page("notification");
disp1->set_component_text_printf("notification.notifi_label", "%s", label.c_str());
display_wrapped_text->execute("notification.notifi_text01", text.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(text.c_str());
notification_text->publish_state(message.c_str());
timer_reset_all->execute(current_page->state.c_str());
notification_unread->turn_on();
if (notification_sound->state) buzzer->play("two short:d=4,o=5,b=100:16e6,16e6");