1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 23:22:21 +01:00

Make API ConnectRequest optional for passwordless connections (#9445)

This commit is contained in:
J. Nick Koston
2025-07-15 15:14:43 -10:00
committed by GitHub
parent e012fd5b32
commit 5c2dea79ef
6 changed files with 97 additions and 14 deletions

View File

@@ -219,8 +219,6 @@ void APIServer::dump_config() {
}
#ifdef USE_API_PASSWORD
bool APIServer::uses_password() const { return !this->password_.empty(); }
bool APIServer::check_password(const std::string &password) const {
// depend only on input password length
const char *a = this->password_.c_str();