Renamed wifi component
To distinct from `wifi_default`
This commit is contained in:
@@ -80,7 +80,7 @@ esp32:
|
||||
|
||||
##### WIFI SETUP #####
|
||||
wifi:
|
||||
id: wifi_network
|
||||
id: wifi_component
|
||||
power_save_mode: NONE
|
||||
networks:
|
||||
- id: wifi_default
|
||||
@@ -1827,7 +1827,7 @@ script:
|
||||
then:
|
||||
- lambda: |-
|
||||
static const char *const TAG = "script.refresh_wifi_icon";
|
||||
bool wifi_connected = wifi_network->is_connected();
|
||||
bool wifi_connected = wifi_component->is_connected();
|
||||
bool api_connected = api_server->is_connected();
|
||||
bool blueprint_connected = (not id(version_blueprint).empty());
|
||||
uint8_t api_val = (wifi_connected and api_connected and blueprint_connected) ? 1 : 0;
|
||||
|
||||
Reference in New Issue
Block a user