1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 21:32:21 +01:00
This commit is contained in:
J. Nick Koston
2025-07-25 14:35:47 -10:00
parent 48128d965e
commit ed379852fb

View File

@@ -900,17 +900,17 @@ class ProtoService {
}
bool check_authenticated_() {
#ifdef USE_API_PASSWORD
if (!this->check_connection_setup_()) {
return false;
}
#ifdef USE_API_PASSWORD
if (!this->is_authenticated()) {
this->on_unauthenticated_access();
return false;
}
return true;
#else
return true;
return this->check_connection_setup_();
#endif
}
};