From ed379852fb7574c1991b09898d1528830bb7d4f3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 25 Jul 2025 14:35:47 -1000 Subject: [PATCH] cleanup --- esphome/components/api/proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/api/proto.h b/esphome/components/api/proto.h index f08175825b..771eaa98d1 100644 --- a/esphome/components/api/proto.h +++ b/esphome/components/api/proto.h @@ -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 } };