Move ap to advanced

There's no use for this without `web_server` and `captive_portal`, so let's save some memory.
This commit is contained in:
Edward Firmo
2024-03-13 21:48:27 +01:00
parent acb3b7f82e
commit b00798b6ae
2 changed files with 6 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ substitutions:
##############################
## Change only in your ##
## local yaml substitutions ##
ap_password: ${wifi_password}
web_password: ${wifi_password}
##############################
@@ -102,4 +103,9 @@ web_server:
auth:
username: admin
password: ${web_password}
wifi:
ap:
ssid: "${name}"
password: ${ap_password}
...

View File

@@ -12,7 +12,6 @@ substitutions:
device_name: NSPanel
name: ${device_name}
friendly_name: ${device_name}
ap_password: ${wifi_password}
ota_password: ${wifi_password}
web_password: ${wifi_password}
temp_units: "°C"
@@ -110,9 +109,6 @@ wifi:
- id: wifi_default
ssid: ${wifi_ssid}
password: ${wifi_password}
ap:
ssid: "${name}"
password: ${ap_password}
on_connect:
- lambda: |-
disp1->send_command_printf("api=%i", (wifi_component->is_connected() and api_server->is_connected() and blueprint_status->state > 99) ? 1 : 0);