Add Id to Wi-Fi component
This commit is contained in:
@@ -208,5 +208,6 @@ time:
|
|||||||
web_server:
|
web_server:
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
|
id: wifi_component
|
||||||
ap:
|
ap:
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ script:
|
|||||||
|
|
||||||
// Toggle relay if corresponding button action is enabled
|
// Toggle relay if corresponding button action is enabled
|
||||||
const bool api_disconnected = !global_api_server->is_connected() or
|
const bool api_disconnected = !global_api_server->is_connected() or
|
||||||
!global_wifi_component->is_connected();
|
!wifi_component->is_connected();
|
||||||
std::string select_state;
|
std::string select_state;
|
||||||
bool toggle_relay = false;
|
bool toggle_relay = false;
|
||||||
if (api_disconnected) {
|
if (api_disconnected) {
|
||||||
|
|||||||
Reference in New Issue
Block a user