Use new get_ip_addresses() from ESPHome v2024.3.0

This commit is contained in:
Edward Firmo
2024-03-19 13:28:11 +01:00
parent 94782bf9fc
commit b1412f1d12

View File

@@ -34,7 +34,7 @@ external_components:
- source:
type: git
url: https://github.com/edwardtfn/esphome
ref: nextion-23 # To do: nextion-v425
ref: nextion-v431
components:
- nextion # Change this when that PR#6192 gets released (2024.4?)
refresh: 300s
@@ -2092,7 +2092,7 @@ script:
- lambda: |-
boot_progress->execute(3);
if (current_page->state == "boot") {
disp1->set_component_text("ip_addr", network::get_ip_address().str().c_str()); // To do: get_ip_addresses()[0]
disp1->set_component_text("ip_addr", network::get_ip_addresses()[0].str().c_str());
set_brightness->execute(100);
}
- logger.log: Wait for API