Performance improvement - Home page values triggering

Solves #1977
Hopefully solves #2001
This commit is contained in:
Edward Firmo
2024-04-01 00:05:33 +02:00
parent 8531a49621
commit c7bfe4096a
3 changed files with 37 additions and 25 deletions

View File

@@ -12,6 +12,7 @@ substitutions:
## Change only in your ##
## local yaml substitutions ##
ap_password: ${wifi_password}
web_password: ${wifi_password}
##############################
button:
@@ -95,6 +96,13 @@ time:
- component.update: api_timestamp
- component.update: device_timestamp
web_server:
id: web_server_std
port: 80
auth:
username: admin
password: ${web_password}
wifi:
ap:
ssid: "${name}"

View File

@@ -13,7 +13,6 @@ substitutions:
name: ${device_name}
friendly_name: ${device_name}
ota_password: ${wifi_password}
web_password: ${wifi_password}
temp_units: "°C"
invalid_cooldown: "100ms"
##### DON'T CHANGE THIS ######
@@ -168,13 +167,7 @@ time:
- logger.log: "System clock synchronized"
- script.execute: refresh_datetime
##### Web server #####
web_server:
id: web_server_std
port: 80
auth:
username: admin
password: ${web_password}
json: # Can be replaced by web_server
##### START - API CONFIGURATION #####
api: