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