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