diff --git a/esphome/components/api/proto.h b/esphome/components/api/proto.h index 7db4b65d55..f08175825b 100644 --- a/esphome/components/api/proto.h +++ b/esphome/components/api/proto.h @@ -908,8 +908,10 @@ class ProtoService { this->on_unauthenticated_access(); return false; } -#endif return true; +#else + return true; +#endif } };