Use new get_ip_addresses() from ESPHome v2024.3.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user